Update Resource

Purpose

​To update an existing resource.

Request URL

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

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.
id*Unique ID of the resource.
nameName of the resource.
descriptionDescription of the resource.
assigned_workspacesUnique ID of the workspace the resource belongs to.
assigned_servicesUnique ID of the service the resource is assigned to.
user_in_chargeEmail address of the user to be assigned as resource in-charge.
ignorePastAppointmentsIndicates whether past appointments should be considered while updating the resource.
Possible values: true, false.
If ignorePastAppointments= true, resource details in past appointments will be updated.
If ignorePastAppointments= false, resource details in past appointments will not be updated.
If not specified, this parameter defaults to false.
Note: Fields marked  * are mandatory.

Scope

zohobookings.data.CREATE 

Request Method

POST

Response Type

JSON

​​​

Points to consider

  • Update limit: Only one resource can be updated per request.

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": {
    "id": "150220000000678304",
    "name": "Conference room 1",
    "status": "active",
    "description": "Conference room for 10 people with projector facility",
    "assigned_workspaces": {
      150220000000425010
    },
    "assigned_services": {
      150220000000675208
    },
    "user_in_charge": "kevin@zylker.com"
  }
},
ignorePastAppointments = true

Sample Response

Copied{
  "response": {
    "returnvalue": {
      "message": {
        "id": 150220000000678304,
        "name": "Conference room 1",
        "description": "Conference room for 10 people with projector facility",
        "assigned_workspaces": [
          150220000000136002,
          150220000000328056,
          150220000000425010
        ],
        "assigned_services": [
          150220000000678742
        ],
        "user_in_charge": "kevin@zylker.com",
        "status": "ACTIVE"
      },
      "result_message": "Resource updated.",
      "status": "success"
    },
    "status": "success"
  }
}