Skip to content

Zoho: Kiosk State

Zoho kiosksStates.updateKioskState: arguments, response, policy and SDK examples.

← Kiosks states operations · Get started

Operation zoho.updatekioskstate

Provider route: PUT /crm/v8/settings/kiosks/{kioskId}/states/{stateId}. 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["kiosksStates"]["updateKioskState"]>[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.kiosksStates.updateKioskState(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.kiosks_states.update_kiosk_state(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.kioskIdstringRequired within parentMaximum length: 255
path.stateIdstringRequired within parentMaximum length: 255
bodyModelRequired within parentExpand Kiosk State — request body — body

Referenced models: Kiosk State — 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
$ModelRootExpand Kiosk State — response body

Referenced models: Kiosk State — response body

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

Kiosk State — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the success response returned after a kiosk state update.
Additional keys: not allowed
statesarrayOptionalRepresents the array of operation result objects for the updated kiosk states.
Maximum items: 1
states[]ModelEach itemExpand Delete a kiosk state — response body — states

Referenced models: Delete a kiosk state — response body — states

Kiosk State — request body — body
FieldTypePresenceDescription and constraints
$objectRootRepresents the request body for updating a kiosk state. The states array contains exactly one state object, with the state ID as the only required field.
Additional keys: not allowed
statesarrayRequired within parentRepresents the array containing exactly one state object to update.
Maximum items: 1
Minimum items: 1
states[]ModelEach itemExpand Kiosk State — request body — body states item

Referenced models: Kiosk State — request body — body states item

Delete a kiosk state — response body — states
FieldTypePresenceDescription and constraints
$objectRootRepresents the operation result for a single kiosk state in a create or update response. Contains the result code, status, message, and state details.
Additional keys: not allowed
codestringOptionalRepresents the result code for the operation on this state.
Maximum length: 255
detailsModelOptionalExpand Delete a kiosk state — response body — states details
messagestringOptionalRepresents the result message for the operation on this state.
Maximum length: 255
statusstringOptionalRepresents the result status for the operation on this state.
Maximum length: 255

Referenced models: Delete a kiosk state — response body — states details

Kiosk State — request body — body states item
FieldTypePresenceDescription and constraints
$objectRootRepresents the kiosk state update payload. The ID field is the only required property; all other fields are optional and only the included fields are changed.
Additional keys: not allowed
detailsJSONOptionalRepresents the state-specific configuration object to be updated. The structure varies by the state type.
details (anyOf 1)ModelAlternativeExpand Kiosk State — request body — body states item details screen details
details (anyOf 2)ModelAlternativeExpand Kiosk State — request body — body states item details path details
details (anyOf 3)ModelAlternativeExpand Kiosk State — request body — body states item details add meeting, add tags, api name, assign owner, convert, create record, criteria, email notifications, execute for record, field updates, functions, get record, note, open link, open record, quick create record, remove tags, schedule call, tasks, type, webhooks
details (anyOf 4)ModelAlternativeExpand Kiosk State — request body — body states item details get record
from_transitionModelOptionalExpand Kiosk State — request body — body states item from transition
idstringOptionalRepresents the unique identifier of the kiosk state to be updated.
Maximum length: 19
namestring or nullOptionalRepresents the display name of the kiosk state.
Maximum length: 250
typeJSONOptionalRepresents the type of the kiosk state. The value determines the structure of the details object.
type (anyOf 1)stringAlternativeRepresents the type of the kiosk state. Determines the structure of the details configuration object.
Possible values:
screen - A visual screen state with form elements.
decision - A conditional branching state.
action - A CRM operation state.
get_records - A record retrieval state.

One of: screen, decision, action, get_records
type (anyOf 2)nullAlternativeRepresents the null variant of the type field, used when updating a state without changing its type.
$ (allOf 1)JSONAll variants applyRepresents the screen state variant of the update payload. Applies when the state type is screen.
$ (allOf 2)JSONAll variants applyRepresents the decision state variant of the update payload. Applies when the state type is decision.
$ (allOf 3)JSONAll variants applyRepresents the action state variant of the update payload. Applies when the state type is action.
$ (allOf 4)JSONAll variants applyRepresents the get_records state variant of the update payload. Applies when the state type is get_records.

Referenced models: Kiosk State — request body — body states item details add meeting, add tags, api name, assign owner, convert, create record, criteria, email notifications, execute for record, field updates, functions, get record, note, open link, open record, quick create record, remove tags, schedule call, tasks, type, webhooks, Kiosk State — request body — body states item details path details, Kiosk State — request body — body states item from transition, Kiosk State — request body — body states item details get record, Kiosk State — request body — body states item details screen details

Delete a kiosk state — response body — states details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a state operation result. Contains the unique identifier and resource identifier of the created or updated kiosk state.
Additional keys: not allowed
idstringOptionalRepresents the unique identifier of the kiosk state created or updated.
Maximum length: 255
ridstringOptionalRepresents the resource identifier of the kiosk state.
Format: uuid
Maximum length: 255
Kiosk State — request body — body states item details path details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details configuration object for a kiosk decision state. Contains the path definitions, filter conditions, and criteria groupings that determine the branching logic.
Additional keys: not allowed
path_detailsarrayRequired within parentRepresents the list of decision paths the kiosk can follow. Each path includes filter conditions that are evaluated to determine the routing; the default fallback path may have null filter conditions.
Maximum items: 10
Minimum items: 1
path_details[]ModelEach itemExpand Kiosk State — request body — body states item details path details path details item

Referenced models: Kiosk State — request body — body states item details path details path details item

Kiosk State — request body — body states item from transition
FieldTypePresenceDescription and constraints
$objectRootRepresents the transition trigger used when updating a kiosk state. Contains the unique identifier of the transition edge that activates the state.
Additional keys: not allowed
idstring or nullOptionalRepresents the unique identifier of the transition that activates this kiosk state. Transitions arise when a button activates on a previous screen, a decision node produces a routing path, or an action completes and triggers the next step.
Maximum length: 19
Kiosk State — request body — body states item details get record
FieldTypePresenceDescription and constraints
$objectRootRepresents the details configuration object for updating a kiosk get_records state. Contains the reference to the get_record component that defines which records to retrieve.
Additional keys: not allowed
get_recordobjectOptionalRepresents the reference to the get_record configuration that defines which records to retrieve.
Additional keys: not allowed
get_record.idstring or nullOptionalRepresents the unique identifier of the get_record configuration.
Maximum length: 255
get_record.namestring or nullOptionalRepresents the display name of the get_record configuration.
Maximum length: 255
Kiosk State — request body — body states item details screen details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details configuration object for updating a kiosk screen state. Contains the screen_details object with the UI elements, buttons, and layout properties to be updated.
Additional keys: not allowed
screen_detailsModelOptionalExpand Kiosk State — request body — body states item details screen details screen details
Configuration object defining the UI screen that will be rendered to the kiosk user. This object contains all information required to dynamically construct the screen interface including: input elements, interactive components, layout configuration, action buttons, screen metadata

The kiosk runtime uses this configuration to generate the UI dynamically without requiring frontend code changes. Elements key is mandatory for a screen_details JSON while creating screen state.

Referenced models: Kiosk State — request body — body states item details screen details screen details

SDK function policy ID: zoho.updatekioskstate. Catalog operation: updateKioskState. 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.