OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Department → Create or Update Department

AI-generated

Summary

Create or update a store department by sending a SetDepartmentInput JSON object to the OnPrintShop API mutation setDepartment.

Inputs

  • Safe Mode — Optional boolean to block mutations in Complete API or reduce nested response fields in legacy actions; defaults to false.
  • Input (JSON) (required) — A JSON object complying with SetDepartmentInput schema including properties like corporate_id, name, email_to, and status to create or update the department.

Output shape

a single JSON object representing the result of the setDepartment mutation, including fields such as result, message, and id

The output contains the API response for the department creation or update operation. Errors are thrown as NodeOperationErrors if the mutation fails.

Links

Discussion