When to use this. Care instructions are reusable library records for a brand: you create
them once with a stable user-defined ID, optionally translate them into multiple languages, and
then select them on styles to drive care label output. Use these endpoints to build and
maintain that library. Multi-language support requires a Professional licence.
The workflow
A care instruction is an organisation-level record. The typical path is to create the instructions, keep them active for selection on styles, and retire or bulk-update them as your labelling requirements evolve.1
Create instructions
POST /api/care-instructions with the default text and an optional user-defined ID. Pass an
array: one or many instructions are created in a single all-or-nothing transaction.2
Add translations (optional)
Include a
languages array in the create body, or update an existing instruction via
PUT /api/care-instructions/{id} with a replacement languages list. Requires a
Professional licence and at least one language configured under Admin > General Settings.3
Find instructions
GET /api/care-instructions with filters (text, userDefinedIds, state) to look up
instructions for import verification or to drive a selection UI. GET /api/care-instructions/{id}
returns a single instruction with its per-language texts.4
Retire or bulk-manage
Use
PUT /api/care-instructions/{id} to deactivate a single instruction, or
PUT /api/care-instructions (bulk) to update text, user-defined IDs, states and translations,
or hard-delete multiple instructions, in one transaction using state: "deleted" on those
items. Position cannot be changed through these endpoints: leave position out of the body,
because a non-null value is rejected.Walkthrough
Create two care instructions in a single call: one with a Danish translation, one without. The body is an array so both are committed atomically.id:
styles reference care instructions by it when building care label output.
Field reference
The fields that matter most when creating or updating a care instruction:Roles & permissions
Creating, updating and deleting care instructions requires thecare_instructions
permission at write level, and the organisation must have the Care Instructions module
enabled. In practice this means CompanyAdmin, or the Care Instruction Admin role held
together with CompanyUser where flexible admin roles are enabled. The Care Instruction User
role is not enough: it grants style-level access only, not management of the library.
Reading a single instruction with GET /api/care-instructions/{id} needs only read-level
care_instructions permission (in practice CompanyAdmin, CompanyUser or Care Instruction
User) with the module enabled.
Multi-language translations require a Professional licence subscription. The
languages
field is accepted on all tiers but translation values are only surfaced where the feature is
enabled.When things go wrong
Errors use the standard envelope (status: "error", a code, and error.details[]). See
Errors & responses for the full list of codes and how to resolve them.
Common cases:
- 409 Conflict on
DELETE: the instruction is still referenced by one or more styles. Deactivate it withPUT /api/care-instructions/{id}(state: "inactive") instead of deleting it, or remove it from all styles first. - 400 validation_error:
textis missing on create,state: "deleted"was passed to the single-update endpoint, or an update carried a non-nullposition. - 403 authorization_error:
GET /api/care-instructions/{id},PUT /api/care-instructions/{id}or an item in the bulkPUTnames anidthat belongs to another organisation. - 404 resource_error: the
iddoes not exist.DELETEalso returns 404 for anidthat belongs to another organisation.
What to call next
Colours
Build the colour library that care instructions sit alongside on a style.
Seasons
Create the seasons that styles, and their care instructions, are filed under.
Style categories
Organise styles by category before assigning care instructions.
Size ranges
Another style-level library entity: size ranges used alongside care labels.
Style care instructions
Read the care instructions assembled on a specific style.
Care instruction icons
Browse the care-symbol icon library referenced by care instructions.