Accept suggested cards
curl --request POST \
--url https://hiimpria.ai/api/boards/triage/{draftId}/accept \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"removed": [
"<string>"
],
"edits": {}
}
'import requests
url = "https://hiimpria.ai/api/boards/triage/{draftId}/accept"
payload = {
"removed": ["<string>"],
"edits": {}
}
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({removed: ['<string>'], edits: {}})
};
fetch('https://hiimpria.ai/api/boards/triage/{draftId}/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://hiimpria.ai/api/boards/triage/{draftId}/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([
'removed' => [
'<string>'
],
'edits' => [
]
]),
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://hiimpria.ai/api/boards/triage/{draftId}/accept"
payload := strings.NewReader("{\n \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\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://hiimpria.ai/api/boards/triage/{draftId}/accept")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/boards/triage/{draftId}/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 \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"created": [
{
"_id": "<string>",
"title": "<string>",
"columnId": "<string>"
}
],
"skipped": [
{
"id": "<string>",
"title": "<string>",
"reason": "<string>"
}
],
"failed": [
{
"title": "<string>",
"error": "<string>"
}
],
"notes": [
"<string>"
],
"board": {
"_id": "<string>",
"name": "<string>"
}
}Boards
Accept suggested cards
Creates the cards of one of the caller’s own pending drafts. This is the only way cards are created from a suggestion; the twin itself can only stage them. Optionally send removed (suggestion ids to leave out) and edits (an object keyed by suggestion id with title, columnId and / or priority); a half-valid edit is a 400 and nothing is created. The draft is claimed atomically, so two accepts at once create the cards once and the second gets a 409. A suggestion whose title matches an open card on the board is skipped and reported. The cards are inserted together but not as a transaction: on a partial failure the answer lists what was created and what failed.
POST
/
api
/
boards
/
triage
/
{draftId}
/
accept
Accept suggested cards
curl --request POST \
--url https://hiimpria.ai/api/boards/triage/{draftId}/accept \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"removed": [
"<string>"
],
"edits": {}
}
'import requests
url = "https://hiimpria.ai/api/boards/triage/{draftId}/accept"
payload = {
"removed": ["<string>"],
"edits": {}
}
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({removed: ['<string>'], edits: {}})
};
fetch('https://hiimpria.ai/api/boards/triage/{draftId}/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://hiimpria.ai/api/boards/triage/{draftId}/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([
'removed' => [
'<string>'
],
'edits' => [
]
]),
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://hiimpria.ai/api/boards/triage/{draftId}/accept"
payload := strings.NewReader("{\n \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\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://hiimpria.ai/api/boards/triage/{draftId}/accept")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/boards/triage/{draftId}/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 \"removed\": [\n \"<string>\"\n ],\n \"edits\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"created": [
{
"_id": "<string>",
"title": "<string>",
"columnId": "<string>"
}
],
"skipped": [
{
"id": "<string>",
"title": "<string>",
"reason": "<string>"
}
],
"failed": [
{
"title": "<string>",
"error": "<string>"
}
],
"notes": [
"<string>"
],
"board": {
"_id": "<string>",
"name": "<string>"
}
}Authorizations
JWT token passed in x-access-token header
Path Parameters
Was this page helpful?