OnPrintShop Store Admin icon

OnPrintShop Store Admin

Maintain OnPrintShop store, address, department, country, FAQ, markup, and payment-term reference data

Complete API → Set Department

AI-generated

Summary

Sets a department in OnPrintShop using the Complete API setDepartment operation. Supply the required input object as fields or JSON, then choose which response fields to return.

Inputs

  • Safe Mode — Defaults to false. For Complete API operations, blocks mutations when enabled; this write operation may therefore be blocked.
  • Input Mode — Choose Fields to build the input object from available department fields, or JSON Object to provide arguments as JSON.
  • Input (required) — The DepartmentInput! argument. Available fields include corporate_id, cost_center_code, delete, department_id, department_payment, dept_flat_markup, dept_markup_id, dept_markup_type, dept_tax_exempt, email_to, name, production_days, status, and use_dept_markup. These fields are optional in the UI.
  • Arguments JSON — In JSON Object mode, provide the operation arguments as JSON; defaults to {}.
  • Partial Response — Choose Fail on Errors (default) or Return Partial Data. Partial results may contain failures and should be reconciled before further writes.
  • Return Fields Mode — Return All Fields (default) or select a custom response field set.
  • Return Fields — In Custom Selection mode, choose any of id, message, or result.

Output shape

A single API response item.

The selected return mode controls whether all response fields or only selected fields are returned. Partial data may be returned when configured and can include failures.

Links

Discussion