Delete Shared Trunks

Delete one or more shared trunks.

Request URL

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

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
ids Yes Array <Integer> The ID of the desired shared trunk.
Note: You can query the trunk ID using Query all the Shared Trunks.

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 /dm/open_api/v1/shared_trunk HTTP/1.1
Host: ycm.yeastar.com
Authorization: Bearer ******
Content-Type: application/json
{
    "ids": [
        6684,6683
    ]
}

Response example

HTTP/1.1 200 OK
{
    "requestId": "ca5006761eee5211bfc11f2e5d3eb03a",
    "status": "Success",
    "time": 1747033215
}