Archive a Project To-do
curl --request POST \
--url https://api.example.com/api/public/v1/project-todos/manage \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"idempotencyKey": "<string>",
"jobId": "<string>",
"itemId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.example.com/api/public/v1/project-todos/manage"
payload = {
"action": "<string>",
"idempotencyKey": "<string>",
"jobId": "<string>",
"itemId": "<string>",
"reason": "<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({
action: '<string>',
idempotencyKey: '<string>',
jobId: '<string>',
itemId: '<string>',
reason: '<string>'
})
};
fetch('https://api.example.com/api/public/v1/project-todos/manage', 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.example.com/api/public/v1/project-todos/manage",
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([
'action' => '<string>',
'idempotencyKey' => '<string>',
'jobId' => '<string>',
'itemId' => '<string>',
'reason' => '<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.example.com/api/public/v1/project-todos/manage"
payload := strings.NewReader("{\n \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<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.example.com/api/public/v1/project-todos/manage")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/public/v1/project-todos/manage")
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 \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyProject To-dos
Archive a Project To-do
Retire an item with an audited reason, closing its open assignments while retaining history.
POST
/
api
/
public
/
v1
/
project-todos
/
manage
Archive a Project To-do
curl --request POST \
--url https://api.example.com/api/public/v1/project-todos/manage \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"idempotencyKey": "<string>",
"jobId": "<string>",
"itemId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.example.com/api/public/v1/project-todos/manage"
payload = {
"action": "<string>",
"idempotencyKey": "<string>",
"jobId": "<string>",
"itemId": "<string>",
"reason": "<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({
action: '<string>',
idempotencyKey: '<string>',
jobId: '<string>',
itemId: '<string>',
reason: '<string>'
})
};
fetch('https://api.example.com/api/public/v1/project-todos/manage', 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.example.com/api/public/v1/project-todos/manage",
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([
'action' => '<string>',
'idempotencyKey' => '<string>',
'jobId' => '<string>',
'itemId' => '<string>',
'reason' => '<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.example.com/api/public/v1/project-todos/manage"
payload := strings.NewReader("{\n \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<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.example.com/api/public/v1/project-todos/manage")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/public/v1/project-todos/manage")
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 \"action\": \"<string>\",\n \"idempotencyKey\": \"<string>\",\n \"jobId\": \"<string>\",\n \"itemId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyArchives one item: it leaves the active catalog, future-hire auto-assignment turns off, and every open assignment closes with your reason recorded in each person’s history. Completed, waived, and already-closed history is retained. Requires
Archiving cannot be undone through this surface. To require the work again, create a new item.
project_todos:write and employer access to the job.
Preview first with preflight (operation: "archive_item") — it returns the exact number of open assignments that would close.
string
required
archive_itemstring
required
string
required
string
required
string
required
Audited and kept on every closed assignment (up to 2,000 characters).
Response
{
"ok": true,
"action": "archive_item",
"itemId": "…",
"archive": {
"closedAssignments": 2,
"closedAssignmentIds": ["…", "…"],
"irreversible": true,
"historyRetained": true
}
}
⌘I