curl --request POST \
--url https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"expectProposalAt": "2023-11-07T05:31:56Z",
"parts": [
"<string>"
],
"selected": [
"<string>"
]
}
'import requests
url = "https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept"
payload = {
"expectProposalAt": "2023-11-07T05:31:56Z",
"parts": ["<string>"],
"selected": ["<string>"]
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectProposalAt: '2023-11-07T05:31:56Z',
parts: ['<string>'],
selected: ['<string>']
})
};
fetch('https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept', 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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept",
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([
'expectProposalAt' => '2023-11-07T05:31:56Z',
'parts' => [
'<string>'
],
'selected' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept"
payload := strings.NewReader("{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyAccept Pria's suggested project brief (its owner, signed in themselves)
Pria can suggest any part of a project’s brief — the summary, the next action, a short note on what was completed, the follow-ups, the blockers and the files, context notes — and contacts and links it found written on the project’s cards; it waits in the project’s header until the owner accepts or dismisses it. Accepting writes the parts the suggestion has (a part it does not have is kept), marked as written by Pria, and keeps the parts it replaced so they can be restored; a suggestion with no text changes none of that. Only the contacts and links named in selected (the ids of the suggested ones the owner ticked) are added: none by default, and an id that is not one of this suggestion’s is a 400; if they would make more than 12 of either, nothing is added and the answer is 409. If the summary or a note changed since Pria made the suggestion, nothing changes and the answer is 409. Send the time of the suggestion the page shows as expectProposalAt: if Pria has made a newer suggestion since, the answer is 409 and the newer one waits to be read. Only the person signed in themselves can accept: a request from an agent, an API key, an impersonation or a consent link is refused with 403.
curl --request POST \
--url https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"expectProposalAt": "2023-11-07T05:31:56Z",
"parts": [
"<string>"
],
"selected": [
"<string>"
]
}
'import requests
url = "https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept"
payload = {
"expectProposalAt": "2023-11-07T05:31:56Z",
"parts": ["<string>"],
"selected": ["<string>"]
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectProposalAt: '2023-11-07T05:31:56Z',
parts: ['<string>'],
selected: ['<string>']
})
};
fetch('https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept', 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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept",
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([
'expectProposalAt' => '2023-11-07T05:31:56Z',
'parts' => [
'<string>'
],
'selected' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept"
payload := strings.NewReader("{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/boards/boards/{boardId}/project/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectProposalAt\": \"2023-11-07T05:31:56Z\",\n \"parts\": [\n \"<string>\"\n ],\n \"selected\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyBody
Response
The project record after accepting
Was this page helpful?