OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Custom Formula

AI-generated

Summary

Set or update a custom formula in the OnPrintShop system by providing the formula details.

Inputs

  • Input (required) — The custom formula details including optional fields such as delete (flag to remove), formula ID, formula label, and formula syntax.
  • Safe Mode — Whether to block mutations in the Complete API, which may reduce response details.
  • Partial Response — Determines handling of partial data on errors — fail on errors or return partial data.
  • Return Fields Mode — Selects whether to return all fields or a custom selection of fields in the response.
  • Return Fields — Customize the set of returned fields: ID, message, and/or result.

Output shape

a single object containing the result of the set operation

The returned object includes the mutation result, any message, and the formula ID. Error responses are thrown as exceptions.

Examples

Example 1: Update custom formula with formula ID and new syntax

Provide the Input parameter with formula_id and updated formula_syntax fields to modify an existing formula.

Links

Discussion