Update a Task
curl --request PATCH \
--url https://api.monaco.com/v1/tasks/{task_id} \
--header 'Content-Type: application/json' \
--data '
{
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"status": "DONE",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2025-07-01T17:00:00Z",
"message_draft": {
"recipients": [
{
"name": "<string>",
"email": "<string>"
}
],
"subject": "<string>",
"body": "<string>",
"cc": [
{
"name": "<string>",
"email": "<string>"
}
],
"sent_at": "<string>"
}
}
'import requests
url = "https://api.monaco.com/v1/tasks/{task_id}"
payload = {
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"status": "DONE",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2025-07-01T17:00:00Z",
"message_draft": {
"recipients": [
{
"name": "<string>",
"email": "<string>"
}
],
"subject": "<string>",
"body": "<string>",
"cc": [
{
"name": "<string>",
"email": "<string>"
}
],
"sent_at": "<string>"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Send follow-up proposal',
description: 'Send the updated pricing proposal to the procurement team',
status: 'DONE',
account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assignee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
due_at: '2025-07-01T17:00:00Z',
message_draft: {
recipients: [{name: '<string>', email: '<string>'}],
subject: '<string>',
body: JSON.stringify('<string>'),
cc: [{name: '<string>', email: '<string>'}],
sent_at: '<string>'
}
})
};
fetch('https://api.monaco.com/v1/tasks/{task_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.monaco.com/v1/tasks/{task_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([
'title' => 'Send follow-up proposal',
'description' => 'Send the updated pricing proposal to the procurement team',
'status' => 'DONE',
'account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assignee_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'due_at' => '2025-07-01T17:00:00Z',
'message_draft' => [
'recipients' => [
[
'name' => '<string>',
'email' => '<string>'
]
],
'subject' => '<string>',
'body' => '<string>',
'cc' => [
[
'name' => '<string>',
'email' => '<string>'
]
],
'sent_at' => '<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.monaco.com/v1/tasks/{task_id}"
payload := strings.NewReader("{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.monaco.com/v1/tasks/{task_id}")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/tasks/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "tsk_abc123",
"account_id": "acc_def456",
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"task_type": "General Action Item",
"assignee": {
"id": "usr_abc123",
"first_name": "Jane",
"last_name": "Smith"
},
"status": "Done",
"due_at": "2025-07-01T17:00:00Z",
"completed_at": "2025-06-28T11:00:00Z",
"created_at": "2025-06-15T10:30:00Z",
"updated_at": "2025-06-28T11:00:00Z",
"message_draft": {
"recipients": [
{
"name": "Jane Smith",
"email": "jane@acme.com"
}
],
"cc": [
{
"name": "John Doe",
"email": "john@acme.com"
}
],
"subject": "Pricing follow-up",
"body": "Hi Jane, following up on the proposal we discussed..."
}
},
"meta": {
"timestamp": "2026-04-21T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Tasks
Update a Task
Updates an existing task by its task_id. Marking a task as DONE or CANCELLED sets completed_at; moving out of those states clears it. Updating account_id is only supported for manually created tasks.
PATCH
/
v1
/
tasks
/
{task_id}
Update a Task
curl --request PATCH \
--url https://api.monaco.com/v1/tasks/{task_id} \
--header 'Content-Type: application/json' \
--data '
{
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"status": "DONE",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2025-07-01T17:00:00Z",
"message_draft": {
"recipients": [
{
"name": "<string>",
"email": "<string>"
}
],
"subject": "<string>",
"body": "<string>",
"cc": [
{
"name": "<string>",
"email": "<string>"
}
],
"sent_at": "<string>"
}
}
'import requests
url = "https://api.monaco.com/v1/tasks/{task_id}"
payload = {
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"status": "DONE",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2025-07-01T17:00:00Z",
"message_draft": {
"recipients": [
{
"name": "<string>",
"email": "<string>"
}
],
"subject": "<string>",
"body": "<string>",
"cc": [
{
"name": "<string>",
"email": "<string>"
}
],
"sent_at": "<string>"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Send follow-up proposal',
description: 'Send the updated pricing proposal to the procurement team',
status: 'DONE',
account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
assignee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
due_at: '2025-07-01T17:00:00Z',
message_draft: {
recipients: [{name: '<string>', email: '<string>'}],
subject: '<string>',
body: JSON.stringify('<string>'),
cc: [{name: '<string>', email: '<string>'}],
sent_at: '<string>'
}
})
};
fetch('https://api.monaco.com/v1/tasks/{task_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.monaco.com/v1/tasks/{task_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([
'title' => 'Send follow-up proposal',
'description' => 'Send the updated pricing proposal to the procurement team',
'status' => 'DONE',
'account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'assignee_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'due_at' => '2025-07-01T17:00:00Z',
'message_draft' => [
'recipients' => [
[
'name' => '<string>',
'email' => '<string>'
]
],
'subject' => '<string>',
'body' => '<string>',
'cc' => [
[
'name' => '<string>',
'email' => '<string>'
]
],
'sent_at' => '<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.monaco.com/v1/tasks/{task_id}"
payload := strings.NewReader("{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.monaco.com/v1/tasks/{task_id}")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/tasks/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Send follow-up proposal\",\n \"description\": \"Send the updated pricing proposal to the procurement team\",\n \"status\": \"DONE\",\n \"account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"assignee_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"due_at\": \"2025-07-01T17:00:00Z\",\n \"message_draft\": {\n \"recipients\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"cc\": [\n {\n \"name\": \"<string>\",\n \"email\": \"<string>\"\n }\n ],\n \"sent_at\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "tsk_abc123",
"account_id": "acc_def456",
"title": "Send follow-up proposal",
"description": "Send the updated pricing proposal to the procurement team",
"task_type": "General Action Item",
"assignee": {
"id": "usr_abc123",
"first_name": "Jane",
"last_name": "Smith"
},
"status": "Done",
"due_at": "2025-07-01T17:00:00Z",
"completed_at": "2025-06-28T11:00:00Z",
"created_at": "2025-06-15T10:30:00Z",
"updated_at": "2025-06-28T11:00:00Z",
"message_draft": {
"recipients": [
{
"name": "Jane Smith",
"email": "jane@acme.com"
}
],
"cc": [
{
"name": "John Doe",
"email": "john@acme.com"
}
],
"subject": "Pricing follow-up",
"body": "Hi Jane, following up on the proposal we discussed..."
}
},
"meta": {
"timestamp": "2026-04-21T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Path Parameters
Body
application/json
Request body for updating a task via PATCH.
Title of the task
Example:
"Send follow-up proposal"
Detailed description of the task
Example:
"Send the updated pricing proposal to the procurement team"
Current status of the task. One of TODO, DONE, CANCELLED.
Example:
"DONE"
ID of the account to associate the task with. Only supported for manually created tasks.
User ID to assign the task to
Due date and time for the task
Example:
"2025-07-01T17:00:00Z"
Draft message contents. Only valid when the task's task_type is EMAIL. Replaces the existing draft when provided.
Show child attributes
Show child attributes
⌘I