Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Catalog/Location → CityCreate

AI-generated

Summary

Creates a city entry in the Catalog/Location resource by dispatching a handler with a provided JSON body. The operation is selected via the 'operation' parameter, and the JSON body parameter is only visible when CityCreate is selected. The node returns the result as a JSON item on the main output.

Inputs

  • resource (required) — The resource identifier; must be 'Catalog/Location' for this operation.
  • operation (required) — The operation to execute; must be 'CityCreate' for this resource.
  • catalog_location_cityCreate_bodyJson — JSON body for city creation. Visible only when operation is '/catalog/location/cityCreate'. Type is collection; default is empty object.

Output shape

Each input item produces an output item with a 'json' field containing the result of the CityCreate operation. If 'continueOnFail' is enabled, error objects are returned instead of throwing.

The returned JSON shape follows the default declared in the body parameter: { id: integer, name: string, state: object, tags: string, properties: object }, but the actual returned data depends on the handler implementation.

Examples

Example 1: Create a city with minimal required fields.

Set resource to 'Catalog/Location', operation to 'CityCreate', and provide a JSON body with at least 'name' and 'id'.

Links

Discussion