Skip to main content
PUT

Update a contact group

Scope:contacts:contacts.write
https://api.holded.com/api/v2/contact-groups/{contactGroupId}

Updates an existing contact group.

Parameters

Path parameters

contactGroupIdstringrequired

Contact Group ID (24-char hex ObjectId)

Request body

object
namestring

Group name

descriptionstring

Group description

colorstring

Group color (hex code)

Request

python
import requests

url = "https://api.holded.com/api/v2/contact-groups/{contactGroupId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "description": "string",
    "color": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Contact group updatedapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Contact group not foundapplication/json
429Rate limit exceededapplication/json