Skip to main content
POST
Create a sub-publishing agreement
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /publisher/sub-publishing Validates that both publishers exist in the tenant, checks territory conflicts against the sub-publisher’s existing coverage, and (on success) creates matching PublisherTerritory rows for the sub-publisher for each territory in terms.territories. Authorization: admin role + publisher addon.

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
originalPublisherId
string<uuid>
required
subPublisherId
string<uuid>
required
agreementNumber
string
required
startDate
string<date-time>
required
terms
object
required
endDate
string<date-time> | null

Response

Agreement created.

message
string
agreement
object