Add or remove members from a business unit Run in API Explorer
Ask AI
Bulk add or remove account members from a business unit. When adding, accounts already assigned to a different business unit are reassigned to this one.
POST
/api/v1/business-units/{business_unit_uuid}/members/{action}
curl \
--request POST 'https://api.plannrcrm.com/api/v1/business-units/6ff8f7f6-1eb3-3525-be4a-3932c805afed/members/add' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{
"accounts": [
"fff3f0ca-bd04-4b97-8604-8a669a62d1f6",
"6f0cb38d-112d-4a7e-aad4-e5b5f362b387",
"56ff69c6-bc10-4410-b705-7d89856b78d6"
]
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"accounts": [
"fff3f0ca-bd04-4b97-8604-8a669a62d1f6",
"6f0cb38d-112d-4a7e-aad4-e5b5f362b387",
"56ff69c6-bc10-4410-b705-7d89856b78d6"
]
}
Response examples (200)
{
"successful": [
"uuid-1",
"uuid-2"
],
"failed": []
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}