curl --request PATCH \
--url https://api.statisfy.com/v1/objects/project/records/{project_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": null,
"description": null,
"due_date": null,
"fields": {},
"priority": null,
"start_date": null,
"status": null,
"title": null
}
'import requests
url = "https://api.statisfy.com/v1/objects/project/records/{project_id}"
payload = {
"assignee": None,
"description": None,
"due_date": None,
"fields": {},
"priority": None,
"start_date": None,
"status": None,
"title": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: null,
description: null,
due_date: null,
fields: {},
priority: null,
start_date: null,
status: null,
title: null
})
};
fetch('https://api.statisfy.com/v1/objects/project/records/{project_id}', 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.statisfy.com/v1/objects/project/records/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => null,
'description' => null,
'due_date' => null,
'fields' => [
],
'priority' => null,
'start_date' => null,
'status' => null,
'title' => null
]),
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.statisfy.com/v1/objects/project/records/{project_id}"
payload := strings.NewReader("{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.statisfy.com/v1/objects/project/records/{project_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/project/records/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"account": "<string>",
"account_name": "<string>",
"assignee": "<string>",
"created_at": "<string>",
"creator": "<string>",
"description": "<string>",
"due_date": "<string>",
"fields": {},
"priority": "low",
"source": "<string>",
"start_date": "<string>",
"status": "<string>",
"status_group": "not_started",
"template": "<string>",
"title": "<string>",
"updated_at": "<string>"
}Update a project
Changes only the keys sent: the standard fields GET /v1/fields?object=project marks writable (title, description, status, priority, start_date, due_date and assignee, unless a sync in your workspace owns one) at the top level, and custom fields under fields. null clears a field: assignee unassigns the project and priority unsets it; title, status and a mandatory custom field cannot be cleared. status is a status name from the project’s own status template, matched exactly, case included. account is set at create and cannot change. The project may not end before it starts. When a project that cascades dates has its set start_date moved to another date, its tasks move by the same amount; its due_date follows its tasks, so sending one is a 422. A project synced from another tool (source names that tool) takes custom fields only: a request with any standard field is a 409 and writes nothing, since that tool’s next sync would replace it. Every key is checked before anything is written. A 500 whose details list fields as written means those standard fields were written and the custom values were not; it says whether to send them again or what refused them. A custom field written here is shown on the project in the app, unless someone removed it from this project. To add a field to the project without writing a value, as the app’s field dialog does, use PUT /v1/objects/project/records//fields/.
curl --request PATCH \
--url https://api.statisfy.com/v1/objects/project/records/{project_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": null,
"description": null,
"due_date": null,
"fields": {},
"priority": null,
"start_date": null,
"status": null,
"title": null
}
'import requests
url = "https://api.statisfy.com/v1/objects/project/records/{project_id}"
payload = {
"assignee": None,
"description": None,
"due_date": None,
"fields": {},
"priority": None,
"start_date": None,
"status": None,
"title": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: null,
description: null,
due_date: null,
fields: {},
priority: null,
start_date: null,
status: null,
title: null
})
};
fetch('https://api.statisfy.com/v1/objects/project/records/{project_id}', 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.statisfy.com/v1/objects/project/records/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => null,
'description' => null,
'due_date' => null,
'fields' => [
],
'priority' => null,
'start_date' => null,
'status' => null,
'title' => null
]),
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.statisfy.com/v1/objects/project/records/{project_id}"
payload := strings.NewReader("{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.statisfy.com/v1/objects/project/records/{project_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/project/records/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": null,\n \"description\": null,\n \"due_date\": null,\n \"fields\": {},\n \"priority\": null,\n \"start_date\": null,\n \"status\": null,\n \"title\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"account": "<string>",
"account_name": "<string>",
"assignee": "<string>",
"created_at": "<string>",
"creator": "<string>",
"description": "<string>",
"due_date": "<string>",
"fields": {},
"priority": "low",
"source": "<string>",
"start_date": "<string>",
"status": "<string>",
"status_group": "not_started",
"template": "<string>",
"title": "<string>",
"updated_at": "<string>"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Response
Successful Response
Was this page helpful?