GET - Get resource info

Purpose

This API retrieves the details of a particular resource in resource booking. The resource ID in the Request URL can be fetched using the Get all resources API.

Request URL

https://calendar.zoho.com/api/v1/resources/<resourceId>

OAuth Scope

scope=ZohoCalendar.resources.ALL

or

scope=ZohoCalendar.resources.READ

 

ALL - Access to all resources

READ - Gets details of a resource

Path Parameters

  • resourceIdlong, mandatory
    • The resource ID will be created when you add a resource to resource booking. The resource ID can be fetched using the Get all resources API.

Request Parameters

  • isCurTimeboolean, mandatory
    • If the parameter is set to true, then the time at which the data is fetched will be given in the response. If false the response will be given without the response.

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/resources/1591704355298000001?isCurTime=true

Sample Response: With CurTime

Copied{
   "resource":
   {
      "building_id":"1587539132404000002",
      "category_name":"Meeting Room",
      "resource_type":0,
      "is_hidden":false,
      "res_email_id":"d55b2f2457ed4d05ad1cddf6576bf107@m43.com",
      "resource_approval":false,
      "auto_gen_name":"d55b2f2457ed4d05ad1cddf6576bf107",
      "capacity":13,
      "is_available":true,
      "image_name":"Room.jpg",
      "has_image":true,
      "branch_id":"1587539132390000001",
      "qr_code_id":"1666247426668000002",
      "resource_id":"1591704355298000001",
      "location":"Ground Floor,Building 1,Trichy",
      "floor_id":"1587539132413000003",
      "resource_name":"Single booking",
      "category":0,
      "image_id":"1666247426603000001"
      },
   "current_time":"202210201209"
}

Sample Response: Without CurTime

Copied{
   "building_id":"1587539132404000002",
   "category_name":"Meeting Room",
   "resource_type":0,
   "is_hidden":false,
   "res_email_id":"d55b2f2457ed4d05ad1cddf6576bf107@m43.com",
   "resource_approval":false,
   "auto_gen_name":"d55b2f2457ed4d05ad1cddf6576bf107",
   "capacity":13,
   "is_available":true,
   "image_name":"Room.jpg",
   "has_image":true,
   "branch_id":"1587539132390000001",
   "qr_code_id":"1666247426668000002",
   "resource_id":"1591704355298000001",
   "location":"Ground Floor,Building 1,Trichy",
   "floor_id":"1587539132413000003",
   "resource_name":"Single booking",
   "category":0,
   "image_id":"1666247426603000001"
}