Record a public decision on the latest permitted publication
curl --request POST \
--url https://api.cx.stax.ai/cp/proposals/{proposal}/_decision \
--header 'Content-Type: application/json' \
--data '
{
"choice": "<string>",
"deal_action": {},
"note": "<string>",
"publication": "<string>",
"publication_id": "<string>",
"represented_party": "<unknown>",
"request_key": "<string>",
"revision": 123,
"scenario": "<string>",
"signer_email": "<string>",
"signer_name": "<string>",
"workflow_mode": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision"
payload = {
"choice": "<string>",
"deal_action": {},
"note": "<string>",
"publication": "<string>",
"publication_id": "<string>",
"represented_party": "<unknown>",
"request_key": "<string>",
"revision": 123,
"scenario": "<string>",
"signer_email": "<string>",
"signer_name": "<string>",
"workflow_mode": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
choice: '<string>',
deal_action: {},
note: '<string>',
publication: '<string>',
publication_id: '<string>',
represented_party: '<unknown>',
request_key: '<string>',
revision: 123,
scenario: '<string>',
signer_email: '<string>',
signer_name: '<string>',
workflow_mode: '<string>'
})
};
fetch('https://api.cx.stax.ai/cp/proposals/{proposal}/_decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'choice' => '<string>',
'deal_action' => [
],
'note' => '<string>',
'publication' => '<string>',
'publication_id' => '<string>',
'represented_party' => '<unknown>',
'request_key' => '<string>',
'revision' => 123,
'scenario' => '<string>',
'signer_email' => '<string>',
'signer_name' => '<string>',
'workflow_mode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision"
payload := strings.NewReader("{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cx.stax.ai/cp/proposals/{proposal}/_decision")
.header("Content-Type", "application/json")
.body("{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/cp/proposals/{proposal}/_decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}client-portal
Record a public decision on the latest permitted publication
POST
/
cp
/
proposals
/
{proposal}
/
_decision
Record a public decision on the latest permitted publication
curl --request POST \
--url https://api.cx.stax.ai/cp/proposals/{proposal}/_decision \
--header 'Content-Type: application/json' \
--data '
{
"choice": "<string>",
"deal_action": {},
"note": "<string>",
"publication": "<string>",
"publication_id": "<string>",
"represented_party": "<unknown>",
"request_key": "<string>",
"revision": 123,
"scenario": "<string>",
"signer_email": "<string>",
"signer_name": "<string>",
"workflow_mode": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision"
payload = {
"choice": "<string>",
"deal_action": {},
"note": "<string>",
"publication": "<string>",
"publication_id": "<string>",
"represented_party": "<unknown>",
"request_key": "<string>",
"revision": 123,
"scenario": "<string>",
"signer_email": "<string>",
"signer_name": "<string>",
"workflow_mode": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
choice: '<string>',
deal_action: {},
note: '<string>',
publication: '<string>',
publication_id: '<string>',
represented_party: '<unknown>',
request_key: '<string>',
revision: 123,
scenario: '<string>',
signer_email: '<string>',
signer_name: '<string>',
workflow_mode: '<string>'
})
};
fetch('https://api.cx.stax.ai/cp/proposals/{proposal}/_decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'choice' => '<string>',
'deal_action' => [
],
'note' => '<string>',
'publication' => '<string>',
'publication_id' => '<string>',
'represented_party' => '<unknown>',
'request_key' => '<string>',
'revision' => 123,
'scenario' => '<string>',
'signer_email' => '<string>',
'signer_name' => '<string>',
'workflow_mode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cx.stax.ai/cp/proposals/{proposal}/_decision"
payload := strings.NewReader("{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cx.stax.ai/cp/proposals/{proposal}/_decision")
.header("Content-Type", "application/json")
.body("{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/cp/proposals/{proposal}/_decision")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"choice\": \"<string>\",\n \"deal_action\": {},\n \"note\": \"<string>\",\n \"publication\": \"<string>\",\n \"publication_id\": \"<string>\",\n \"represented_party\": \"<unknown>\",\n \"request_key\": \"<string>\",\n \"revision\": 123,\n \"scenario\": \"<string>\",\n \"signer_email\": \"<string>\",\n \"signer_name\": \"<string>\",\n \"workflow_mode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}Body
application/json
Decision
Response
OK
The response is of type object.