Create a circle
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body Required
-
Circle name
-
Account UUIDs that are being added to the circle. Between 2 and 50 account UUIDs are required.
-
Groups UUIDs the circle will belong to.
POST
/api/v1/circles
curl \
-X POST https://api.plannrcrm.com/api/v1/circles \
-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":"Jones Family","account_uuids":[null,null],"group_uuids":[null,null]}'
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": "Jones Family",
"account_uuids": [
null,
null
],
"group_uuids": [
null,
null
]
}
Response examples (201)
{
"name": "Jones Family",
"uuid": "a1e33098-c7d6-4541-a7f5-6e054c0c7ac9",
"groups": [
{
"name": "finance",
"slug": "finance",
"uuid": "e2b40670-3ab0-49da-9553-3f5f70426fb6",
"created_at": "2025-01-17T11:18:28+00:00",
"updated_at": "2025-01-17T11:18:28+00:00",
"participants": {
"name": {
"example": "Gareth Thompson",
"description": "Name of the account"
},
"role": {
"example": "client",
"description": "Role of the account"
},
"uuid": {
"example": "fe90139d-06e1-453a-b1bf-f6d6e138614e",
"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"
}
],
"accounts": [
{
"name": "Gareth Thompson",
"role": "client",
"type": "client",
"uuid": "8efa0ff3-5b5d-45af-9ac0-f10903155230",
"email": "gareth@codepotato.co.uk",
"last_name": "Thompson",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"created_at": "2025-01-17T11:18:28+00:00",
"first_name": "Gareth",
"updated_at": "2025-01-17T11:18:28+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource"
}
],
"created_at": "2025-01-17T11:18:28+00:00",
"updated_at": "2025-01-17T11:18:28+00:00"
}