Update a group
PATCH
/groups/{id}
const url = 'https://localhost:3000/api/v1/groups/example';const options = { method: 'PATCH', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"color":"example","icon":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://localhost:3000/api/v1/groups/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "icon": "example", "name": "example" }'Updates a group’s name, color, or icon. Tenant groups need a role that can manage triggers (not viewer) and the tenant:write:
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Group ID (UUID)
Request Body
Section titled “Request Body”Group fields to update
Media typeapplication/json
object
color
string
icon
string
name
string
Example generated
{ "color": "example", "icon": "example", "name": "example"}Responses
Section titled “Responses”Group updated
Media typeapplication/json
object
color
required
string
created_at
required
string format: date-time
icon
required
string
id
required
string format: uuid
name
required
string
owner_id
required
string format: uuid
owner_name
Organization name, only set by owner=all
string
owner_type
required
string
total_events
required
integer
trigger_count
required
integer
updated_at
required
string format: date-time
Example
{ "owner_name": "Acme"}Invalid request
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Group not found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Name already exists
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}