Create Resource

Purpose

​To create one or more resources.

Request URL

https://www.zohoapis.com/bookings/v1/json/addresource

Headers

Parameter NameDescription
AuthorizationZoho-oauthtoken {{accesstoken}}

Note: The access token can be generated from the developer console.

Parameters

Parameters to be passed in the request body as form-data along with the request URL are,

Parameter NameDescription
resourceMap*Map containing resource details. Refer to the parameters below.
name*Name of the resource.
descriptionDescription of the resource.
assigned_workspaces*List of workspace IDs to be assigned to the resource.
Note: Fields marked  * are mandatory. When an array of resource data is passed, the API performs a bulk create.

Scope

zohobookings.data.CREATE 

Request Method

POST

Response Type

JSON

​​​

Points to consider

  • Add limit: A maximum of 10 resources can be added in a single request.
  • Plan restriction: Resource creation is subject to the current plan.

API Limits

Zoho Bookings Plan/EditionNumber of API calls/day
Free250/per user
Basic1000/per user
Premium3000/per user
Zoho One3000/per user
Note: The API limits are excluding the authorization requests. API counts are calculated between 00:00 and 23:59 hours in the respective time zones.

Related Links

Sample Request

Copied{
  "data": [
    {
      "name": "Conference room 1",
      "description": "Conference room for 10 people with projector facility",
      "assigned_workspaces": [
        "150220000000136002",
        "150220000000328056"
      ]
    },
    {
      "name": "Conference room 2",
      "description": "Conference room for 20 people with projector facility",
      "assigned_workspaces": [
        "150220000000043016",
        "150220000000425010"
      ]
    }
  ]
}

Sample Response

Copied{
  "response": {
    "returnvalue": {
      "message": "Resource added.",
      "status": "success"
    },
    "status": "success"
  }
}