POST - Add building

Purpose

This API helps in adding a building to resource booking.

Request URL

https://calendar.zoho.com/api/v1/building

OAuth Scope

scope=ZohoCalendar.branches.ALL

or

scope=ZohoCalendar.branches.CREATE

 

ALL - Full access to all branches

CREATE - Adds a building to resource booking

Request Parameters

  • branch_idlong, mandatory
    • branch_id will be generated for each branch you add to Resource Booking. You can also fetch the branch_id using the Get branches API.
  • buildingDataJSONObject, mandatory
    • buidlingData is a mandatory JSONObject that will have the values of building name, etc., as BuildingJson.
    • BuildingJson:
      • building_namestring, optional
        • You can give names to the buildings that you add to resource booking.
      • latitudedouble, optional
        • You can provide the latitude value in which the building is located.
      • longitudedouble, optional
        • You can provide the longitude value in which the building is located.
      • floor_countint, optional
        • The floor count is the number of floors that you have in a particular building that you add to resource booking.
        • You can use the integer values starting from 1.

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/building?branch_id=1652855131249000001&buildingData={"building_name":"Building-1","floor_count":"2"}

Sample Response

Copied{
   "building_id": "1652855409313000001",
   "building_name": "Building-1",
   "branch_id": "1652855131249000001",
   "description": "",
   "floor_count": 2
}