Approve or deny an open proposal
PATCH /v1/documents/{id}/proposal
PATCH
/v1/documents/{id}/proposal
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Document ID
Example
rampRequest Body required
Section titled “Request Body required ”Defines in a modification or creation standpoint, what happens to a proposal
todo: fix this doc
string
Responses
Section titled “ Responses ”Proposal decided on
object
created
required
decision
One of:
null
One of:
A decision to approve a proposal and effect the consequences
document
required
A slug and version pair that uniquely identifies a document.
As a string, the format should be slug:version, where slug is a string that is a valid slug and version is a string that is a valid version.
Example
# use std::str::FromStr;
# use backend::views::document::{DocumentId, Version};
# use backend::views::common::Slug;
let document_id_str = "cybersecurity-policy:1.0.0";
let document_id: DocumentId = DocumentId::from_str(document_id_str).unwrap();
assert_eq!(document_id.slug.as_str(), "cybersecurity-policy");
assert_eq!(document_id_str.to_string(), DocumentId::new(Slug::from_str("cybersecurity-policy").unwrap(), Version::new(1, 0, 0)).to_string());object
slug
required
The slug of the document. i.e. cybersecurity-policy
string
version
required
The version of the document. i.e. 1.0.0
Array<integer>
id
required
integer format: int32
No open proposal exists