OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Department

AI-generated

Summary

Create or update a department for an OnPrintShop store by sending a DepartmentInput object to the setDepartment GraphQL mutation.

Inputs

  • Safe Mode — Boolean option, off by default. The UI describes it as blocking mutations in the Complete API; for legacy actions it reduces nested response fields.
  • Input (JSON) (required) — A SetDepartmentInput JSON object. The example includes corporate_id, name, email_to, and status; supply the department fields needed for the create or update.

Output shape

A single item containing the mutation result object.

The result includes result, message, and id when returned by OnPrintShop. GraphQL errors are raised as node errors; with Continue On Fail enabled, the item contains an error message. The mutation is sent through the legacy API path, so the Complete API Safe Mode mutation block does not apply to this action.

Links

Discussion