Bulk Delete Emergency Contacts

Delete multiple emergency contacts in a tenant.

Request URL

DELETE {base_url}/uc-cconfig/api/v1/emergency-contacts/batch

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 IDs of the emergency contacts to delete.
Note: You can obtain the ID using the Search Emergency Contacts 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
successCount Integer The number of emergency contacts deleted successfully.
failedCount Integer The number of emergency contacts that failed to be deleted.

Example

Request example

DELETE /uc-cconfig/api/v1/emergency-contacts/batch HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJyZWdpb24ta2V5LTEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc4ODUwNTI5MSwiaWF0IjoxNzg4NDgzNjkxLCJqdGkiOiI2NzZmNzhiNS1iZjUxLTQ0OTQtYTdjNC01ZTFjNjI3YmZlMTciLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.HCqpumqUB419xFtNV6oJJByPRzE571VVQWGuZ7I_NMgDg_LvEK9xS3CTe5tlCFOMyL36szYpawZA9nGpyqSCCTRbDplZBZAkbgWCFnV6H_cKZA15bmnpITEEQ1Azwzf49oTE00mudfYxeVJe7rQDX8lDQlgbMRnQZmwlscR_dbFVqPpQhuAkwhCT1Kyyu3NVvr-nNE8YdoxDQtdgGh5Uf09ULAyMD-j8qHya0jqYlFIIYp1_GzK5wpyU0-D7DjYmWYIkr9xBpTiqTZT6D2JUEKWJmud2psOpyITa2L39QIWHu7nqMty4u-8hfh9Vzlgl8XM8Z1yale_jNdJZgYmyQQ
Content-Type: application/json
x-tenant-code: jint
{
  "ids": [
    "354069401442799616",
    "354069402789171200"
  ]
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "cdf05918fa308fe0ff5be06a08d364e5",
  "code": "200",
  "message": "SUCCESS",
  "result": {
    "successCount": 2,
    "failedCount": 0
  }
}