Skip to main content
POST
The version is immutable from this moment. Changed content is the next version. It is not adoptable yet. A second person confirms it, and until then an adoption naming it is refused. Publishing the same content twice under one number is a retry and answers 200 with what is published. Different content under a taken number is 409.

Who may call

An administrator of the organization, as a person. The agent is refused on live and sandbox Tenancies alike.

Path parameters

string
required
The Tenancy acting. It comes from Read the tenancy; your organization must be bound to it.

Body

string
required
Your own name for the policy. It may not be one the Platform publishes.
integer
required
Numbered consecutively from 1 per policy. A number past the next one is refused.
string
required
The ISO 4217 code every amount in the version is stated in.
string
A claim about the content. Stated, it is checked against what you sent; omitted, nothing is claimed. Content copied from a read and then edited must drop it.
array
required
Rules that settle an application outright. Every rule identifier carries your Tenancy’s identifier as its namespace.
array
required
Entries awarding points for the bands of one attribute’s values. The bands cover the attribute’s whole domain.
array
required
Bands naming the outcome for a range of the score, with no gap and no overlap.
array
The attributes the rules read, echoed back from a read. Checked against the vocabulary; a disagreement is refused.

Response

Answers 201.
string
required
The policy’s name.
integer
required
The version number, counting from 1.
string
required
A 64-character hexadecimal digest of the content. A number is a label; the digest can be checked, and every Decision records it.
string
required
The person who published it, as your identity provider names them.
string
required
When, as an RFC 3339 moment.
boolean
required
Whether the version may be adopted.
boolean
required
true when the publisher also confirmed it, which only a sandbox Tenancy permits.
string
Who confirmed. Absent until there is one.
string
When they confirmed.

Refusals

Every refusal carries the error shape. 429 and 503 answer as at the signing door.