myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Update subaccount admin

PATCH

/api/v1/ext/subaccount-admins/{id}

Rename, activate / deactivate, or change their workspaces, device limits and devices.

Auth: Bearer access_token
Scope: subaccount_admins.write

Send only what changes; everything else stays as it is. For workspaces send either workspace_ids (the whole new set — [] removes all) or add_workspace_ids / remove_workspace_ids, not both. Device limits come first. android_quantity, imessage_quantity, whatsapp_quantity and rcs_quantity set how many devices of each channel the admin may hold (the same limits as the dashboard form; they also cap how many devices the admin can connect themselves). The iMessage, WhatsApp and RCS limits cannot go above your own plan's quantity for that channel. Then assign devices by id, one array per channel: android_device_ids, imessage_device_ids, whatsapp_device_ids, rcs_device_ids — no more ids than the channel's limit. The limit and the ids can be sent in the same request. Getting device ids: call List devices (Devices section, GET /api/v1/ext/devices, scope devices.read; add ?channel=android to filter) and use each device's id, putting it in the array for its channel. Ids are unique only within a channel, so the same number can be an Android device and a WhatsApp number — always match the array to the device's channel. Only devices on the installer's own account can be assigned (404 otherwise). On update a device array ADDS to the devices the admin already holds; to take devices away send remove_android_device_ids, remove_imessage_device_ids, remove_whatsapp_device_ids or remove_rcs_device_ids. Both can go in one request (remove one, add another). A device already held is never swapped out: if adding would take the admin past the channel's limit, the request is refused with 400 and nothing changes — raise the limit or remove a device first. A channel you do not send is left as it is, and so is a limit you do not send. A limit cannot go below the devices the admin holds. email, password, by_pass_2fa, wl_allowed and plan_id cannot be changed through the API (400).

Parameters

NameInTypeRequiredDescription
id
path
number
yes
Subaccount admin id.
name
body
stringnoFull name, up to 255 characters.
status
body
enumnoInactive stops them signing in.
workspace_ids
body
array<number>noThe whole new set of workspaces.
add_workspace_ids
body
array<number>noWorkspaces to give them.
remove_workspace_ids
body
array<number>noWorkspaces to take away.
android_quantity
body
numbernoHow many Android (SMS) devices they may hold. No plan cap.
imessage_quantity
body
numbernoHow many iMessage devices they may hold. At most your plan's iMessage quantity.
whatsapp_quantity
body
numbernoHow many WhatsApp numbers they may hold. At most your plan's WhatsApp quantity.
rcs_quantity
body
numbernoHow many RCS senders they may hold. At most your plan's RCS quantity.
android_device_ids
body
array<number>noAndroid (SMS) devices to add — ids from List devices where channel is "android". No more than android_quantity. Added to what they already hold.
imessage_device_ids
body
array<number>noiMessage devices to add — ids where channel is "imessage". No more than imessage_quantity. Added to what they already hold.
whatsapp_device_ids
body
array<number>noWhatsApp numbers to add — ids where channel is "whatsapp". No more than whatsapp_quantity. Added to what they already hold.
rcs_device_ids
body
array<number>noRCS senders to add — ids where channel is "rcs". No more than rcs_quantity. Added to what they already hold.
remove_android_device_ids
body
array<number>noAndroid devices to take away.
remove_imessage_device_ids
body
array<number>noiMessage devices to take away.
remove_whatsapp_device_ids
body
array<number>noWhatsApp numbers to take away.
remove_rcs_device_ids
body
array<number>noRCS senders to take away.

Responses

StatusWhen
200
OK
400
Nothing to update, or a field that cannot be changed
400
Adding past the device limit (nothing is changed)
400
A limit below the devices held, or above your plan
401
Missing or invalid token
403
Missing scope
403
The token was installed by a subaccount admin, not the account owner
404
Not a subaccount admin of the installer
404
A workspace or device that is not on the installer's account

Response schema

subaccount_adminobject
idnumber

User id — also the assignee_id for tasks, appointments and opportunities.

Example:41
namestring

Full name.

emailstring

The email they sign in with.

statusstring

"active" or "inactive". An inactive admin cannot sign in.

Example:active
workspacesarray<object>

The workspaces they can work in: id and name.

devicesobject

Devices assigned to them, per channel (android, imessage, whatsapp, rcs): id and name.

device_limitsobject

How many devices of each channel they may hold: android, imessage, whatsapp, rcs (numbers).

created_atstring (ISO 8601)

When they were added.

Request
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/subaccount-admins/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active",
  "add_workspace_ids": [
    9
  ],
  "android_quantity": 3,
  "android_device_ids": [
    15
  ],
  "remove_android_device_ids": [
    11
  ],
  "whatsapp_quantity": 1,
  "whatsapp_device_ids": [
    4
  ]
}'
Responses
OK
{
  "success": true,
  "message": "Subaccount admin updated",
  "data": {
    "id": 41,
    "name": "Sam Doe",
    "email": "sam@example.com",
    "status": "active",
    "workspaces": [
      {
        "id": 7,
        "name": "Lee Studio"
      },
      {
        "id": 9,
        "name": "Harbour Dental"
      }
    ],
    "devices": {
      "android": [
        {
          "id": 12,
          "name": "Pixel 8"
        },
        {
          "id": 15,
          "name": "Galaxy S23"
        }
      ],
      "imessage": [],
      "whatsapp": [
        {
          "id": 4,
          "name": "+61 400 000 000"
        }
      ],
      "rcs": []
    },
    "device_limits": {
      "android": 3,
      "imessage": 0,
      "whatsapp": 1,
      "rcs": 0
    },
    "created_at": "2026-10-27T09:00:00.000Z"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Subaccount admin id.

Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/subaccount-admins/%7Bid%7D
Previous

« Invite subaccount admin

Next

Delete subaccount admin »