Classifications
Update classification (partial)
Update specific fields on a classification.
PATCH
Update classification (partial)
Send only the fields you want to change. Anything you don’t send stays as it is. Use
Selections (classification lines)
Omitting
Required-for-records
Omitting
Lines that are in use elsewhere can’t be deleted; you’ll get a
null on parent_id to remove a parent.
To rename and deactivate a classification, send:
selections preserves the existing lines. Sending the field applies it as-is: lines whose id you include are kept (and updated with whatever values you send), and lines whose id you omit are deleted. Sending [] removes every line. Adding a new line means sending it without an id:
required_for_records preserves existing associations. Sending the field replaces the full set; sending [] removes them all:
422 back listing which ones.
Side effects
- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set
is_activetofalseon this classification or on that selection.
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
Maximum string length:
255Body
application/json
Partial update payload for PATCH /public/classifications/{id}/.
Every field is optional: send only the fields you want to change. Unset fields are left untouched on the existing record.
Note on list fields:
selectionsabsent → existing classification lines are preserved. Sending[]deletes all existing lines.required_for_recordsabsent → existing record-type associations are preserved. Sending[]removes them all.
Response
OK