DELETE - Delete branch

​Purpose

This API is used to delete a branch from resource booking. You can fetch the branch ID of the branch you want to delete using the GET - Branch List API.

Request URL

https://calendar.zoho.com/api/v1/branches/<branchId>

OAuth Scope

scope=ZohoCalendar.branches.ALL

or

scope=ZohoCalendar.branches.DELETE

 

ALL - Full access to all branches

DELETE - Deletes a branch

Path Parameters

  • branchIdlong, mandatory
    • This is the unique ID that's given to each branch you add to resource booking. You can fetch the branch ID using the GET - Branch List API.

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/branches/1596612665738000001

Sample Response: Branch Deleted

Copied{
"message":"Branch deleted",
"status":true
}

Error message: If the Branch has room in it and is deleted

Copied{
   "error_message":"Branch is tagged with rooms and cannot be deleted",
   "errorcode":"BRANCH_TAG_WITH_ROOMS",
   "status":"failure"
}