Block or restore a client
Block a client, or restore one you blocked. Nothing is deleted, so the client's agents, numbers, campaigns and history stay as they are and a restore brings the client back as it was.
Reseller accounts only. Request access.
true blocks, false restores. Must be a JSON boolean.
The client user to block or restore. Send this or organization_id, not both.
The client organization whose users are all blocked or restored. Send this or user_id, not both.
curl -X POST 'https://backend.omnidim.io/api/v1/reseller/users/access' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "blocked": true, "organization_id": 5678, "detach_numbers": true }'
{ "success": true, "blocked": true, "user_ids": [ 1234, 1235 ], "detached_numbers": { "91": { "agent_id": 412, "sms_enabled": false } }, "message": "Client access blocked." }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonblocked*booleantrue blocks, false restores. Must be a JSON boolean.
user_id?integerThe client user to block or restore. Send this or organization_id, not both.
organization_id?integerThe client organization whose users are all blocked or restored. Send this or user_id, not both.
detach_numbers?booleanAlso detach the organization's numbers from their agents.
Only with organization_id and blocked: true.
falseResponse body
application/jsonAccess changed.
application/jsonsuccess?booleanblocked?booleanThe state you asked for.
user_ids?array<integer>The users whose access changed. Users that were left as they were are not listed.
detached_numbers?Numbers detached from their agents, keyed by number id.
Empty unless detach_numbers was true. Use it to attach
the numbers again.
message?stringUpdate user access control
Enable or disable dashboard menu access flags for a child user. Only the flags you pass are changed. Flags outside your reseller's permissions are silently ignored.
Preview releasing a client
What releasing a client would do, changing nothing. Call it before POST /reseller/clients/release to confirm the amounts and the numbers that come back.
