Update Resource
Table of Contents
Purpose
To update an existing resource.
Request URL
https://www.zohoapis.com/bookings/v1/json/updateresource
Headers
| Parameter Name | Description |
|---|---|
| Authorization | Zoho-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 Name | Description |
|---|---|
| resourceMap* | Map containing resource details. Refer to the parameters below. |
| id* | Unique ID of the resource. |
| name | Name of the resource. |
| description | Description of the resource. |
| assigned_workspaces | Unique ID of the workspace the resource belongs to. |
| assigned_services | Unique ID of the service the resource is assigned to. |
| user_in_charge | Email address of the user to be assigned as resource in-charge. |
| ignorePastAppointments | Indicates 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/Edition | Number of API calls/day |
| Free | 250/per user |
| Basic | 1000/per user |
| Premium | 3000/per user |
| Zoho One | 3000/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"
}
}