v1
latestOpenAPI 3.1.02026-07-2295105298.6 KBGroups
Update Group
Updates a group's name, adds websites, removes websites, and/or (partners only) sets or clears the external_id mapping. At least one field must be provided. Requires a global API key. Partner integrations may pass external_id as a non-empty string to set/replace the mapping, or as null to clear it.
patch/api/v1/groups/{group_id}
Request body
Example request
{
"name": "Renamed Group",
"add_website_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"remove_website_ids": [
"987e6543-e21b-12d3-a456-426614174000"
],
"external_id": "acct_9e4c1b8d",
"billing_enabled": true
}Response
Group updated successfully. Partner responses include an externalId field (string or null); direct-customer responses omit the field entirely.
Example response
{
"group": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Enterprise Clients",
"orgId": "987e6543-e21b-12d3-a456-426614174000",
"createdAt": "2024-06-15T10:30:00.000Z",
"websites": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"websiteUrl": "example.com",
"websiteName": "My Awesome Blog"
}
],
"externalId": "acct_9e4c1b8d"
}
}