curl --request PUT \
--url https://api.quiva.ai/workspaces/task/{task_id}/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": true,
"resources": [
{
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": true,
"suppress_events": true
}
'import requests
url = "https://api.quiva.ai/workspaces/task/{task_id}/action"
payload = {
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": True,
"resources": [
{
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": True,
"suppress_events": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Confirm the report has been proofread',
id: 'ta_a1b2c3',
done: true,
resources: [{resource_id: 'customers.rec_123', metadata: {}}],
keep_status: true,
suppress_events: true
})
};
fetch('https://api.quiva.ai/workspaces/task/{task_id}/action', 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.quiva.ai/workspaces/task/{task_id}/action",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Confirm the report has been proofread',
'id' => 'ta_a1b2c3',
'done' => true,
'resources' => [
[
'resource_id' => 'customers.rec_123',
'metadata' => [
]
]
],
'keep_status' => true,
'suppress_events' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.quiva.ai/workspaces/task/{task_id}/action"
payload := strings.NewReader("{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.quiva.ai/workspaces/task/{task_id}/action")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/workspaces/task/{task_id}/action")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}"
response = http.request(request)
puts response.read_body{
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": true,
"resources": [
{
"resource_type": "record",
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": true,
"suppress_events": true
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Create or update a task checklist action
Upsert a checklist action on a task. There is no separate create endpoint — PUT is used for both create and update.
Omit id to create a new action (the server assigns one); pass an existing id to update that action. description is required on every write, including updates that only change done.
The response echoes back the action as submitted, not the stored record — it does not reflect how a partial update merged with the existing action.
A new action without a valid resource is refused with 400, and the error names the accepted resource types. Editing a stored action keeps its existing shape.
curl --request PUT \
--url https://api.quiva.ai/workspaces/task/{task_id}/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": true,
"resources": [
{
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": true,
"suppress_events": true
}
'import requests
url = "https://api.quiva.ai/workspaces/task/{task_id}/action"
payload = {
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": True,
"resources": [
{
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": True,
"suppress_events": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Confirm the report has been proofread',
id: 'ta_a1b2c3',
done: true,
resources: [{resource_id: 'customers.rec_123', metadata: {}}],
keep_status: true,
suppress_events: true
})
};
fetch('https://api.quiva.ai/workspaces/task/{task_id}/action', 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.quiva.ai/workspaces/task/{task_id}/action",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Confirm the report has been proofread',
'id' => 'ta_a1b2c3',
'done' => true,
'resources' => [
[
'resource_id' => 'customers.rec_123',
'metadata' => [
]
]
],
'keep_status' => true,
'suppress_events' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.quiva.ai/workspaces/task/{task_id}/action"
payload := strings.NewReader("{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.quiva.ai/workspaces/task/{task_id}/action")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/workspaces/task/{task_id}/action")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Confirm the report has been proofread\",\n \"id\": \"ta_a1b2c3\",\n \"done\": true,\n \"resources\": [\n {\n \"resource_id\": \"customers.rec_123\",\n \"metadata\": {}\n }\n ],\n \"keep_status\": true,\n \"suppress_events\": true\n}"
response = http.request(request)
puts response.read_body{
"description": "Confirm the report has been proofread",
"id": "ta_a1b2c3",
"done": true,
"resources": [
{
"resource_type": "record",
"resource_id": "customers.rec_123",
"metadata": {}
}
],
"keep_status": true,
"suppress_events": true
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Body
A checklist item on a task. description is required on every write, not only on create — an update that only flips done still has to resend it.
Response
The action as submitted (echoed back, not read back from storage).
A checklist item on a task. description is required on every write, not only on create — an update that only flips done still has to resend it.