Zen ERP icon

Zen ERP

Zen ERP connector node

Actions1246

Catalog/Location → CountryUpdate

AI-generated

Summary

Updates a country in the Catalog/Location resource via a JSON body with specified fields.

Inputs

  • resource (required) — Resource identifier; must be 'Catalog/Location' for this operation.
  • operation (required) — Operation identifier; must be 'CountryUpdate' for this resource.
  • catalog_location_countryUpdate_bodyJson (required) — JSON body providing the country data to update. Expected fields: id (integer), name (string), codeA2 (string), codeA3 (string), codeN (string), tags (string), properties (object). Type: collection, default: {}.

Output shape

Each input item produces an output item on the main output with a 'json' field containing the handler's result.

If the handler result is an array, each element becomes a separate output item paired with the input index. If the result is a single value (not undefined), one output item is produced. On error with continueOnFail enabled, an error object is returned instead of throwing.

Examples

Example 1: Update country with id=1, name='United States', codeA2='US', codeA3='USA'.

Set resource to 'Catalog/Location', operation to 'CountryUpdate', and bodyJson to {'id': 1, 'name': 'United States', 'codeA2': 'US', 'codeA3': 'USA', 'codeN': '', 'tags': '', 'properties': {}}.

Links

Discussion