Update an agreement's status
Publisher Writer Agreements
Update an agreement's status
PATCH /publisher-writer/agreements//status
PATCH
Update an agreement's status
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
PATCH /publisher-writer/agreements//status Description: Setsstatus on the agreement. status must be one of the
AgreementStatus enum values or the request is rejected with 400
before any transaction is opened. Does not otherwise validate a
state-machine transition (e.g. terminated → active is
allowed).
Authorization:
- Required role:
adminor higher
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Body
application/json
Available options:
draft, pending, active, expired, terminated Response
Status updated
Available options:
draft, pending, active, expired, terminated Only present when the record was loaded via the model's default scope (all reads; NOT present on the POST /agreements create response).
Only present when the record was loaded via the model's default scope (all reads; NOT present on the POST /agreements create response).