Delete Trunk Access Permissions for Specific Users

Delete trunk access permissions for specific subordinate users.

Request URL

DELETE {base_url}/dm/open_api/v1/trunk_acl

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String Pass the access token in the header.

Format: Bearer {access_token}.

Body parameters
Parameter Required Type Description
userIds Yes Array<Integer> The ID list of subordinate users.
Note:

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
status String Request result:
  • Success
  • Failed
time Long The response time.
Note: The YCM API response returns a timestamp, you can convert the timestamp to detailed date and time as needed. For more information, see Convert Timestamp to Local Date and Time.

Example

Request example

Delete trunk access permissions for specific subordinate users (ID: 359054 and 405427).
DELETE /dm/open_api/v1/trunk_acl HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer ******
Content-Type: application/json
{
    "userIds": [
       359054,405427
    ]
}
Response example
HTTP/1.1 200 OK
{
    "requestId": "85956721b593b94f28ff26bc324fecee",
    "status": "Success",
    "time": 1766398729
}