Bulk Delete Custom Prompts

Deletes multiple custom prompts in one request. Up to 50 custom prompts can be deleted at a time.

Request URL

DELETE {base_url}/uc-cconfig/api/v1/sounds/custom-prompts/batch-delete

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Body parameters
Parameter Required Type Description
ids Yes Array<String> The list of IDs of the custom prompts to delete, supporting 1 to 50 prompts. You can obtain the IDs using the Search Custom Prompts interface.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Deletion_Result> The deletion result.
Deletion_Result
Parameter Type Description
deletedIds Array<String> The IDs of the custom prompts that are deleted.
skippedIds Array<String> The IDs of the custom prompts that are skipped and not deleted, because they do not exist or do not belong to the current tenant.

Example

Request example

DELETE /uc-cconfig/api/v1/sounds/custom-prompts/batch-delete HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MzYzODA2OSwiaWF0IjoxNzkzNjE2NDY5LCJqdGkiOiJlODE2YTdlZC1iNDVlLTQ4YTctODA5MC1lYzcxMjA5YTcxZTYiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6IjhjMzQ4OWVkLWU1MTItNDMyMS04NTlmLTYyOTViZTkyYzU2NiIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.efez-C9HAhAIHEHjYrE_HxMfF6UL88PYy6Ako7829NsWg-WmTZ0CWy1WpAWCzafk3XbpVAnr1LNjd8m5yD0d8YTNfUWcgokrbn9K75Ha6W1FzhK18D83wznS9AwPSPkr14ssT1a-phP0SWJu5wEU11bF-QTMLlpdtKwjig31LBRHh7qmtqHMXUCsttmZFMZcZVfFAC0WSlkYZOXcP9q8DOm6fc3BjZb57y898DRXQBXo5RdvytDzdmIphqv6oZELiPtMzkA5PeQQsGavTm5c-bz3xCoZveCwkhsPtogR-R7_k3EJ4Cq4UA_Ros_1VSO8kj2tKCUfZGq6qs5j1sE2gg
x-tenant-code: jint
Content-Type: application/json
{
  "ids": [
    "375596908349317120",
    "375596911167889408"
  ]
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "6e3287d8e7cff5a6c306f56a76149a71",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "deletedIds": [
      "375596908349317120",
      "375596911167889408"
    ],
    "skippedIds": []
  }
}
Note:

If none of the specified IDs exists, the request returns 404 with the error code 1000404002 (DATA_NO_FOUND), rather than 200 with all IDs in skippedIds.