Skip to main content
POST

Create a contact group

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

Creates a new contact group. The response returns the new contact group `id`.

Request body

object
namestringrequired

Group name

descriptionstringoptional

Group description

colorstringoptional

Group color (hex code)

Request

python
import requests

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

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

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Contact group createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
429Rate limit exceededapplication/json