Clear Voicemails

Clear voicemails for the current user in NovoOne Client.

Request URL

DELETE {base_url}/uc-creport/api/v1/my-voicemails

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
readStatus No String

The read status used to filter the voicemails to clear.

Valid value:

  • unread: Clear only unread voicemails.
  • read: Clear only read voicemails.
  • all: Clear all voicemails.
Note: If this parameter is not specified, all voicemails are cleared.

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
deletedCount Integer The number of voicemails deleted.

Example

Request example

DELETE /uc-creport/api/v1/my-voicemails HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJhcHBfa2V5Ijoic2xOdnQzaHc1NXB2Vm5HRlNhR2ZOVTNmMWxYQ3lpa08iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MjA4NzA2NCwiaWF0IjoxNzkyMDY1NDY0LCJqdGkiOiJlMmE2OGZlNy04ZThmLTQ5MDMtOGE0NC0yMTA0MGQ3ZWMzYzAiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.gQBF09WY8QH_Ea4ejq_aoatysX6WA89CnC3tOj-h-BZe6oIzJshi7peFClx-RxnRPxZUytOOrOMRUR8osenVw7GcjzcF7YtA3vqre-UK4fyUPxHHucbF7N5lwUo0b93GQ10_waiMh0mwO9Vl8NqCh5g10ISUHLVDUNBWGplIypt5w0B3_BfIl30mlnZg2L12w9kX5mXROVSuVLRUcr-a6Pg_URlBBxfvcsUMA_Bzvesia3h3EFIvNrMr_Z2AYAznACg8SyAf6j21lSi4zUccFj5Spo5we97D-6kqF4zabCq6_ArVnJ2SXfd_bc7Vvs4tt9nc_05I7aSbzePcRflG-w
x-tenant-code: jint
Content-Type: application/json
{
  "readStatus": "all"
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "92e74bcf4b98d8e575e80b56bbcb5bdc",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "deletedCount": 0
  }
}