Skip to content

Zoho: Create Appointment records

Zoho appointments.createAppointmentsS: arguments, response, policy and SDK examples.

← Appointments operations · Get started

Operation zoho.createappointmentss

Provider route: POST /crm/v8/Appointments__s. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["appointments"]["createAppointmentsS"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.appointments.createAppointmentsS(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.appointments.create_appointments_s(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelOptionalExpand Create Appointment records — request body — body

Referenced models: Create Appointment records — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Create Appointment records — response body — data
$ (anyOf 2)ModelAlternativeExpand Create Appointment records — response body — data
$ (anyOf 3)objectAlternativeRepresents the multi-status response body returned when bulk creating appointment records. The data array contains individual result items, each independently indicating success or failure for the corresponding submitted record.
Additional keys: not allowed
$ (anyOf 3).dataarrayRequired within parentRepresents the collection of result items returned for the bulk create operation. Each item independently indicates success or failure for the corresponding appointment record submitted in the request.
Maximum items: 200
Minimum items: 2
$ (anyOf 3).data[]JSONEach itemRepresents a single result item in the multi-status response. Each item is either a success object containing the created record details or an error object describing the reason the corresponding record could not be created.
$ (anyOf 3).data[] (anyOf 1)ModelAlternativeExpand Create Appointment records — response body — data data item code, details, message, status
$ (anyOf 3).data[] (anyOf 2)ModelAlternativeExpand Create Appointment records — response body — data data item value
$ (anyOf 3).data (allOf 1)JSONAll variants applyIndicates that the data array contains at least one success item representing a successfully created appointment record.
$ (anyOf 3).data (allOf 2)JSONAll variants applyIndicates that the data array may contain zero or more error items, each representing an appointment record that could not be created.

Referenced models: Create Appointment records — response body — data data item code, details, message, status, Create Appointment records — response body — data, Create Appointment records — response body — data data item value

27 more schemas are linked from the tables above, on the schema pages.

Create Appointment records — response body — data data item code, details, message, status
FieldTypePresenceDescription and constraints
$objectRootRepresents a successful result item in the Multi-Status response, containing the result code, details, message, and status.
Additional keys: not allowed
codestringOptionalRepresents the result code for the appointment record operation.
Maximum length: 255
detailsModelOptionalExpand Delete an Appointment by ID — response body — data item details
messagestringOptionalRepresents the result message for the appointment record operation.
Maximum length: 255
statusstringOptionalIndicates the result status of the appointment record operation.
Maximum length: 255

Referenced models: Delete an Appointment by ID — response body — data item details

Create Appointment records — response body — data
FieldTypePresenceDescription and constraints
$objectRootRepresents the success response for the request to create appointment records, containing the result for each appointment.
Additional keys: not allowed
dataarrayOptionalRepresents the list of result objects for each created appointment record.
Maximum items: 100
Minimum items: 1
data[]ModelEach itemExpand Delete an Appointment by ID — response body — data item

Referenced models: Delete an Appointment by ID — response body — data item

Create Appointment records — response body — data data item value
FieldTypePresenceDescription and constraints
$JSONRootRepresents a single result item in the Multi-Status response for appointment updates, which is either a success response or an error response for the corresponding appointment record.
$ (anyOf 1)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: MANDATORY NOT FOUND, message: required field not found, status: error
$ (anyOf 2)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD UNCHANGED, status: error
$ (anyOf 3)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD MISSING, DEPENDENT MISMATCH, status: error
$ (anyOf 4)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, message: Service is not available on the given time, status: error
$ (anyOf 5)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, message: Appointment time does not falls under business hours, status: error
$ (anyOf 6)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment Owner is not a part of Service Members, status: error
$ (anyOf 7)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: INVALID DATA, message: invalid data, INVALID DATA, status: error
$ (anyOf 8)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: INVALID DATA, status: error
$ (anyOf 9)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD MISSING, status: error
$ (anyOf 10)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, status: error
$ (anyOf 11)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be marked as completed before the appointment ends, status: error
$ (anyOf 12)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, status: error
$ (anyOf 13)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be marked as overdue before the appointment ends, status: error
$ (anyOf 14)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be scheduled for past dates, status: error
$ (anyOf 15)ModelAlternativeExpand Create Appointment records — response body — data / data / item / value / code: MANDATORY NOT FOUND, message: mandatory key missing, status: error

Referenced models: Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, status: error, Create Appointment records — response body — data / data / item / value / code: MANDATORY NOT FOUND, message: required field not found, status: error, Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, message: Service is not available on the given time, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment Owner is not a part of Service Members, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD MISSING, status: error, Create Appointment records — response body — data / data / item / value / code: INVALID DATA, message: invalid data, INVALID DATA, status: error, Create Appointment records — response body — data / data / item / value / code: NOT ALLOWED, message: Appointment time does not falls under business hours, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be scheduled for past dates, status: error, Create Appointment records — response body — data / data / item / value / code: INVALID DATA, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD MISSING, DEPENDENT MISMATCH, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be marked as overdue before the appointment ends, status: error, Create Appointment records — response body — data / data / item / value / code: MANDATORY NOT FOUND, message: mandatory key missing, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT FIELD UNCHANGED, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, message: Appointment cannot be marked as completed before the appointment ends, status: error, Create Appointment records — response body — data / data / item / value / code: DEPENDENT MISMATCH, status: error

Create Appointment records — request body — body
FieldTypePresenceDescription and constraints
$objectRootRepresents the request body schema for creating appointment records.
Additional keys: not allowed
dataarrayRequired within parentRepresents the data array containing the appointment objects to create.
Maximum items: 100
Minimum items: 1
data[]ModelEach itemExpand Create Appointment records — request body — body data item

Referenced models: Create Appointment records — request body — body data item

Delete an Appointment by ID — response body — data item details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of an appointment record, including its ID, creation timestamp, and last modification timestamp.
Additional keys: not allowed
Created_ByModelOptionalExpand Delete an Appointment by ID — response body — data item details Created By
Created_TimestringOptionalRepresents the date and time when the appointment record was created.
Maximum length: 120
Modified_ByModelOptionalExpand Delete an Appointment by ID — response body — data item details Modified By
Modified_TimestringOptionalRepresents the date and time when the appointment record was last modified.
Maximum length: 120
idstringOptionalRepresents the unique identifier of the appointment record.
Maximum length: 255

Referenced models: Delete an Appointment by ID — response body — data item details Created By, Delete an Appointment by ID — response body — data item details Modified By

SDK function policy ID: zoho.createappointmentss. Catalog operation: createAppointmentsS. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.