Skip to main content
PATCH
Update the equipment policy draft
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
content
string
required

The COMPLETE new equipment policy text. This fully replaces the draft — it is not appended.

publish
boolean

Set to true to publish the policy in the same call: the draft is written and immediately copied to the published text, and the per-country equipment result is refreshed. Use it when the user has already confirmed the change they asked for, so a single edit costs a single approval instead of two. Leave it out (or false) to write the draft only.

Response

default - application/json
id
string
required
status
enum<string>
required

Publication state. "unpublished": never published (or hidden). "pending-changes": the draft has edits not yet published. "published": the draft matches the published text.

Available options:
unpublished,
pending-changes,
published
draft
object
required

The editable draft. This is the text updateEquipmentPolicy writes.

published
object | null
required

The published text the AI agent sees at runtime, or null if never published. Diff it against the draft to surface pending edits.