POST - Mark resource as favorite

Purpose

This API helps in marking a resource as a favorite. The marked resource will be listed under the favorite section of your resource booking grid. The resourceId of the resource that needs to be marked as favorite can be fetched using the Get all resources API.

Request URL

https://calendar.zoho.com/api/v1/resources/favorite

OAuth Scope

scope=ZohoCalendar.resources.ALL

or

scope=ZohoCalendar.resources.CREATE

ALL - Access to all resources

CREATE - Marks a resource as favorite

Request Parameters

  • resource_idlong, 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.

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/resources/favorite?resource_id=1587118423395000081

Sample Response

Copied{
"favorite_resources":"{\"building_id\":\"1587118394618000011\",\"category_name\":\"Conference Room\",\"resource_type\":0,\"is_hidden\":false,\"description\":\"\",\"res_email_id\":\"66d256900bce437997261599be80ab5d@m43.com\",\"resource_approval\":false,\"auto_gen_name\":\"66d256900bce437997261599be80ab5d\",\"capacity\":100,\"is_available\":true,\"has_image\":false,\"branch_id\":\"1587118394609000002\",\"resource_id\":\"1587118423395000081\",\"floor_id\":\"1587118394620000013\",\"resource_name\":\"TELUGU Conference\",\"category\":1}"
}