Zoho: Get webform diff
Zoho webforms.getDiff: arguments, response, policy and SDK examples.
← Webforms operations · Get started
Operation zoho.getdiff
Provider route: GET /crm/v8/settings/webforms/diff. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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["webforms"]["getDiff"]>[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.webforms.getDiff(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.webforms.get_diff(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Required within parent | Additional keys: not allowed |
query.base_form | number | Required within parent | One of: 111111000000114140 |
query.variant_form | number | Required within parent | One of: 111111000000114400 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Get webform diff — response body |
Referenced models: Get webform diff — response body
Schemas
Section titled “Schemas”3 more schemas are linked from the tables above, on the schema pages.
Get webform diff — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the diff response comparing the base and variant webforms, including the list of structural differences. Additional keys: not allowed |
diff | array | Required within parent | Contains the list of diff objects representing the differences between the base and variant webforms. Maximum items: 1 |
diff[] | Model | Each item | Expand Get webform diff — response body — diff item |
Referenced models: Get webform diff — response body — diff item
Get webform diff — response body — diff item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the structural differences between the base and variant webforms, including added, modified, and removed fields. Additional keys: not allowed |
added_fields | JSON | Required within parent | |
added_fields (anyOf 1) | array | Alternative | Contains the list of fields added to the variant webform compared to the base webform. Maximum items: 50 |
added_fields (anyOf 1)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
added_fields (anyOf 2) | null | Alternative | Contains the list of fields added to the variant webform compared to the base webform. Maximum items: 50 |
added_fields (anyOf 2)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
button_attributes | JSON | Required within parent | |
button_attributes (anyOf 1) | null | Alternative | Contains the button attribute differences between the base and variant webforms. Maximum items: 2 |
button_attributes (anyOf 1)[] | Model | Each item | Expand Get webform diff — response body — diff item button attributes null item |
button_attributes (anyOf 2) | array | Alternative | Contains the button attribute differences between the base and variant webforms. Maximum items: 2 |
button_attributes (anyOf 2)[] | Model | Each item | Expand Get webform diff — response body — diff item button attributes null item |
form_attributes | JSON | Required within parent | |
form_attributes (anyOf 1) | Model | Alternative | Expand Get webform diff — response body — diff item form attributes value Field: form_attributes |
form_attributes (anyOf 2) | Model | Alternative | Expand Get webform diff — response body — diff item form attributes value Field: form_attributes |
modified_fields | JSON | Required within parent | |
modified_fields (anyOf 1) | array | Alternative | Contains the list of fields modified in the variant webform compared to the base webform. Maximum items: 50 |
modified_fields (anyOf 1)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
modified_fields (anyOf 2) | null | Alternative | Contains the list of fields modified in the variant webform compared to the base webform. Maximum items: 50 |
modified_fields (anyOf 2)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
removed_fields | JSON | Required within parent | |
removed_fields (anyOf 1) | null | Alternative | Contains the list of fields removed from the variant webform compared to the base webform. Maximum items: 50 |
removed_fields (anyOf 1)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
removed_fields (anyOf 2) | array | Alternative | Contains the list of fields removed from the variant webform compared to the base webform. Maximum items: 50 |
removed_fields (anyOf 2)[] | Model | Each item | Expand Get webform diff — response body — diff item added fields null item |
Referenced models: Get webform diff — response body — diff item button attributes null item, Get webform diff — response body — diff item added fields null item, Get webform diff — response body — diff item form attributes value
Get webform diff — response body — diff item button attributes null item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | object | Alternative | Represents a button attribute entry associated with the webform's form attribute configuration. Additional keys: not allowed |
$ (anyOf 1).label | string | Optional | Specifies the display label shown on the button in the webform. Maximum length: 255 |
$ (anyOf 1).name | string | Optional | Represents the internal name identifier of the button attribute configuration within the webform. Maximum length: 255 |
Get webform diff — response body — diff item added fields null item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | object | Alternative | Represents the configuration of a field modified in the comparison between the base and variant webforms. Additional keys: not allowed |
$ (anyOf 1).display_label | string | Optional | Represents the display label of the field as shown on the webform. Maximum length: 255 |
$ (anyOf 1).field | Model | Optional | Expand Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal field |
$ (anyOf 1).field_info | Model | Optional | Expand Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal field info |
$ (anyOf 1).help | Model | Optional | Expand Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal help |
$ (anyOf 1).hidden | boolean | Optional | Indicates whether the field is hidden on the webform. Possible values: true - The field is hidden. false - The field is visible. |
$ (anyOf 1).required | boolean | Optional | Indicates whether the field is required on the webform. Possible values: true - The field is required. false - The field is not required. |
$ (anyOf 1).type | string | Required within parent | Represents the type classification of the field as configured on the webform. Known values: general, advanced, portal Maximum length: 255 |
Referenced models: Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal help, Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal field info, Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal field
Get webform diff — response body — diff item form attributes value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | object | Alternative | Represents an alternate visual configuration of the webform, including color, width, alignment, and font attributes. Additional keys: not allowed |
$ (anyOf 1).align | string | Optional | Specifies the horizontal alignment of the webform content. Maximum length: 255 |
$ (anyOf 1).color | string | Optional | Specifies the background color of the webform. Maximum length: 255 |
$ (anyOf 1).font_attributes | Model | Optional | Expand Get webform diff — response body — diff item form attributes value align, color, font attributes, width font attributes |
$ (anyOf 1).width | string | Optional | Specifies the width of the webform. Maximum length: 255 |
$ (anyOf 2) | null | Alternative | Represents an alternate visual configuration of the webform, including color, width, alignment, and font attributes. Additional keys: not allowed |
$ (anyOf 2).align | string | Optional | Specifies the horizontal alignment of the webform content. Maximum length: 255 |
$ (anyOf 2).color | string | Optional | Specifies the background color of the webform. Maximum length: 255 |
$ (anyOf 2).font_attributes | Model | Optional | Expand Get webform diff — response body — diff item form attributes value align, color, font attributes, width font attributes |
$ (anyOf 2).width | string | Optional | Specifies the width of the webform. Maximum length: 255 |
Referenced models: Get webform diff — response body — diff item form attributes value align, color, font attributes, width font attributes
Get webform diff — response body — diff / item / added_fields / null / item / type: general, advanced, portal field info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the field metadata object containing additional information about the CRM field in this diff entry. Additional keys: not allowed |
field_label | string | Required within parent | Represents the display label of the CRM field in the diff field metadata. Maximum length: 255 |
type | string | Required within parent | Represents the data type of the field as defined in the CRM module configuration. Maximum length: 255 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getdiff. Catalog operation: getDiff. 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.