Remove a territory from an agreement
Publisher Writer Agreements
Remove a territory from an agreement
DELETE /publisher-writer/agreements//territories/
DELETE
Remove a territory from an agreement
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
DELETE /publisher-writer/agreements//territories/ Description: Removes the entry matchingterritoryCode from the agreement’s
territories array inside a DB transaction. 404s if no territory
with that code exists on the agreement.
Authorization:
- Required role:
adminor higher
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Response
Territory removed; full updated agreement returned
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).