Actions47
- Country Actions
- Department Actions
- FAQ Actions
- FAQ Category Actions
- Mutation Actions
- Payment Term Actions
- Store Actions
- Store Address Actions
- Store Markup Actions
- Account Summary Actions
- Admin Extra Fields Actions
- Store Credit Actions
- Store Locations Actions
- Complete API Actions
- Account Summary
- Admin Extra Field Values
- Admin Extra Fields
- Faq
- Get Countries
- Get Departments
- Get Faq Category
- Get Payment Term Master
- Get Store
- Get Store Locations
- Get Store Markup
- Store Credit Summary
- Storeaddress
- Set Admin Extra Field
- Set Admin Extra Field Values
- Set Department
- Set Faq
- Set Faq Category
- Set Store
- Set Store Address
- Set Store Location
- Set Store Markup
Complete API → Set Department
AI-generatedSummary
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
inputobject 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, orresult.
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.