Skip to main content

Update Workspace

 

Purpose

To update a workspace

 

Request URL

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

 

Headers

Parameter NameDescription
AuthorizationZoho-oauthtoken {{accesstoken}}

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

 

Request Method

POST

 

Parameters

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

Parameter NameDescription
workspaceId*The unique id of the workspace to be deleted
dataMap*The map containing the details to be updated. Refer to the below parameters.
dataMap parameter details
(Any one parameter is mandatory)
nameName of the workspace
statusAllowed values: active, in_active
Set whether the workspace must be active or inactive.
descriptionDescription of the workspace. It can be up to 2000 characters.
mail_notificationsContains a map to configure the sender email for email notifications. Please refer to the sample request.
customerDenotes sender email configurations for customer notifications
staffDenotes sender email configurations for staff notifications
emailDenotes the sender email address. 
Allowed values: bookings, superadmin, staff, business, and workspace.
replytoDenotes the email address to which reply emails will be sent when the recipient replies. 
Allowed values: customer, superadmin, staff, business, and workspace.
CCDenotes the email address that will be included as CC for email notifications. 
Allowed values: superadmin, staff, business, and workspace.
policies_and_preferencesDenotes a map to configure policies and preferences settings for the workspace.
scheduling_intervalScheduling interval for the workspace. It must be a multiple of five, between 5 and 1435.
customer_select_staffSpecify whether the customer has to choose staff in the booking page. 
Allowed values: true, false
auto_assign_staffSpecify if the auto-assign staff option has to be included in the staff list. 
Allowed values: true, false
languageGive the preferred language for the workspace. 
Allowed values: userlanguage, en, fr, de, es, nl, pt, ar, ja, zh, he, it, ro, ru, sv, or sw.
prefixDenotes the prefix of the booking ID. Length of the text can be 1 to 6.
maximum_invoice_digitsLength of the digits in the booking ID. Values must be between 1 to 16.
terms_and_conditionsMap containing details whether terms and conditions have to be included in the booking page. {"enable":"true","message":"terms and conditions"} 
Allowed values:
1. enable: true, false 
2. message: provide the terms and conditions message.
minimum_booking_noticeSpecify how much notice is required when an appointment is booked. The value is given in minutes as a multiple of 5.
maximum_booking_noticeSpecify how far in advance an appointment can be booked. The value is given in minutes as a multiple of 5.
cancel_reschedule_noticeSpecify before how much time an appointment is allowed to be rescheduled/cancelled. The value is given in minutes as a multiple of 5.
enable_cancelDenotes whether rescheduling or cancelling is permitted for an appointment. 
Allowed values: true, false.

Response Type

JSON

 

Points to consider


Name

  • Special characters |/,?{}<>:;"'`\ are not allowed in workspace name
  • The length of the workspace name must be between 2 - 50 characters.

General

  • If only one workspace is present, then it cannot be marked as inactive.

Email notifications

  • Business or workspace email: In the mail_notifications map, "business" and "workspace" values are also allowed if the respective mail is verified in Bookings.
  • The value 'bookings' denote the default booking notification email, notification@zohobookings.com

 

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{
"workspaceId" : "211427000000030018",
"dataMap" : 
  {
    "name":"Consultations - New York",
    "status":"active",
    "description":"Description for New York workspace",
    "mail_notifications":
       {
         "customer":
             {
               "email":"business",
               "replyto":"superadmin",
               "cc":"staff"
              },
         "staff":
            {
               "email":"bookings",
               "replyto":"customer",
                "cc":"staff"
              }
        },
    "policies_and_preferences":
         {
            "scheduling_interval":10,
            "customer_select_staff":"true",
            "auto_assign_staff":"true",
            "language":"userlanguage",
            "prefix":"LA",
            "maximum_invoice_digits":7,
           "terms_and_conditions":
              {
                   "enable":"true",
                   "message":"terms and conditions"
                },
           "minimum_booking_notice":30,
           "maximum_booking_notice":30,
           "cancel_reschedule_notice":30,
           "enable_cancel":"true"
        }
    }
}

Sample Response

Copied{
	response : {
		"returnvalue" : {
			"message" : "Workspace updated successfully.",
			"status" : "success"
		},
		"status" : "success"
	}
}