Create a group
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body Required
-
Group name that must be unique.
-
participants array[string]
UUIDs of accounts to add to the group.
POST
/api/v1/group
curl \
-X POST https://api.plannrcrm.com/api/v1/group \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
-d '{"name":"Accounting","participants":["91874cf9-4a9f-412d-a745-697cabb556d9","cc6d05df-45ac-432d-8f3d-1175896ce680"]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Accounting",
"participants": [
"91874cf9-4a9f-412d-a745-697cabb556d9",
"cc6d05df-45ac-432d-8f3d-1175896ce680"
]
}
Response examples (200)
{
"name": "finance",
"slug": "finance",
"uuid": "d8159d8b-67f1-43be-8f13-dc425a1f7255",
"created_at": "2025-01-17T11:18:29+00:00",
"updated_at": "2025-01-17T11:18:29+00:00",
"participants": {
"name": {
"example": "Gareth Thompson",
"description": "Name of the account"
},
"role": {
"example": "client",
"description": "Role of the account"
},
"uuid": {
"example": "24d3c36c-1b70-4fc3-8e82-ce8d46e6d9ec",
"description": "UUID of the account"
},
"email": {
"example": "gareth@codepotato.co.uk",
"description": "Email of the account"
},
"last_name": {
"example": "Thompson",
"description": "Last name of the account"
},
"first_name": {
"example": "Gareth",
"description": "First name of the account"
}
},
"participants_count": "3"
}