Skip to content

Approve or deny a version's open proposal

PATCH
/v1/documents/{slug}/versions/{version}/proposal
curl --request PATCH \
--url https://api.adversarial.com/api/v1/documents/ramp/versions/2026.9.1/proposal \
--header 'Content-Type: application/json' \
--data '"approve"'

Approving a version the organization holds but has not promoted is the adoption commit point: it becomes the policy of record and the version it replaces is retired, atomically with the approval. Denying such a version abandons the adoption instead — the same outcome as releasing it — because a held version with a decided proposal has no way back into the workflow.

slug
required
string

The document slug

Example
ramp
version
required
string

The document version

Example
2026.9.1
Media typeapplication/json

Defines in a modification or creation standpoint, what happens to a proposal

todo: fix this doc

string
Allowed values: approve deny

Proposal decided on

Media typeapplication/json
object
created
required

Who performed an action, and when.

object
by
One of:
null
date
required
string format: date-time
decision
One of:
null
document
required

The slug and version pair that uniquely identifies a document.

As a string it is written slug:version — for example cisp:2026.9.1.

object
slug
required

The slug of the document. i.e. cisp

string
version
required

The version of the document. i.e. 2026.9.1

string
id
required
integer format: int32
Example
{
"document": {
"version": "2026.9.1"
}
}

The latest proposal has already been decided, or the version is archived

No such version, or it has no proposal