Skip to main content
POST
apply monetization configuration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The desired monetization configuration for the project the key belongs to

config
object
required

The whole desired monetization configuration for a project

Response

Per-plan outcomes, drafts left behind by earlier documents, what the application has to call at runtime, and a dashboard link to the first draft created for review

plans
object[]
required

One outcome per plan, in the same order as the plans of the submitted document

staleDrafts
object[]
required

Drafts made by an earlier, now-superseded document, plus same-hash duplicates left by a concurrent apply. Reported, never deleted

integrationContract
object
required

What the application has to call at runtime for this configuration to work

reviewUrl
string<uri> | null
required

Dashboard link to the first draft this apply created, for a human to review and publish. Null when no draft was created — every plan was already unchanged or published — and also null when the link could not be built, so a null here does not prove nothing was created; read plans for that