DELETE - Delete business hours profile
Purpose
Use this API to delete a business hours profile.
Authorization
HeaderKey | Description |
Authorization* | Zoho-oauthtoken<space><ACCESS_TOKEN> |
Accept* | Set to application/json. |
Request URL
Method: DELETE
https://voice.zoho.com/rest/json/zv/workday |
Scope: ZohoVoice.telephony.DELETE
Parameters:
Param Name | Data Type | Description |
id* | Long | Represents the ID of the business hours profile. |
Sample Request
Copiedcurl "https://voice.zoho.com/rest/json/zv/workday" \
-X DELETE \
-d "id=4501000000773003" \
-H "Authorization:Zoho-oauthtoken *****"Sample Response - Success
Copied{
"code": "200",
"message": "success",
"status": "SUCCESS"
}Sample Response - Error
Copied{
"code": "BH001",
"message": "This profile cannot be deleted as it is linked to a number",
"workday": {
"associatedNumbers": {
"4501000000773003": "1800123456"
}
},
"status": "ERROR"
}