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":["97ac9f66-b151-4238-99ed-4729837ee7a0","584629e1-b5a0-4521-a016-1e71b2fe5731","7088c00d-6124-4e1f-b1a2-aeb028b00719"]}'
Request examples
{
"accounts": [
"97ac9f66-b151-4238-99ed-4729837ee7a0",
"584629e1-b5a0-4521-a016-1e71b2fe5731",
"7088c00d-6124-4e1f-b1a2-aeb028b00719"
]
}
Response examples (200)
{
"successful": [
"uuid-1",
"uuid-2"
],
"failed": []
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}