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" \
--data '{
"accounts": [
"4ac55a7a-86eb-4982-ae93-2c2e9d0be5e5",
"314f2379-9912-4a89-8d1a-6f4a5992668b",
"a40b070a-94ec-41a0-bf0d-0b495b268b73"
]
}'
Request examples
{
"accounts": [
"4ac55a7a-86eb-4982-ae93-2c2e9d0be5e5",
"314f2379-9912-4a89-8d1a-6f4a5992668b",
"a40b070a-94ec-41a0-bf0d-0b495b268b73"
]
}
Response examples (200)
{
"successful": [
"uuid-1",
"uuid-2"
],
"failed": []
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}