patch · monitors:write
Update a keyword group
Update a keyword group
WriteIdempotent
REST
patch
/api/v1/keyword-groups/{id}curl "https://herculeradar.com/api/v1/keyword-groups/:id" \
--request PATCH \
--header "Authorization: Bearer hr_live_…" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{}'MCP
Tool name update_keyword_group. It takes the same input and returns the same { data, meta } envelope as REST, because both call the same function.
Rename a group or flip is_own.
Parameters
| idrequired | string | Group id |
Request body
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"is_own": {
"type": "boolean"
}
}
}Response
{
"data": {
"id": "uuid",
"is_own": true
},
"meta": {
"capability": "update_keyword_group",
"requestId": "req_9f2b4a8c1d0e",
"idempotencyReplayed": false,
"docs": "https://herculeradar.com/docs/reference/update_keyword_group"
}
}Authorization
Requires the monitors:write scope. A credential without it gets 403 FORBIDDEN. Resources in projects the credential cannot reach answer 404 NOT_FOUND rather than 403, so ids cannot be probed across tenants.
Send an Idempotency-Key header. A completed response is replayed for 24 hours, so a retry after a timeout cannot create a duplicate.