curl --request PUT \
--url https://melso.ai/api/tasks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "done"
}
'import requests
url = "https://melso.ai/api/tasks/{id}"
payload = { "status": "done" }
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({status: 'done'})
};
fetch('https://melso.ai/api/tasks/{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://melso.ai/api/tasks/{id}",
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([
'status' => 'done'
]),
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://melso.ai/api/tasks/{id}"
payload := strings.NewReader("{\n \"status\": \"done\"\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://melso.ai/api/tasks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"done\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/tasks/{id}")
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 \"status\": \"done\"\n}"
response = http.request(request)
puts response.read_body{
"execution": {
"version": "<string>",
"harness": "<string>",
"model": "<string>",
"thinking_level": "<string>",
"service_tier": "<string>",
"worker_id": "<string>"
},
"id": "<string>",
"workspace_id": "<string>",
"number": 123,
"identifier": "<string>",
"title": "<string>",
"description": "<string>",
"status": "cancelled",
"delivered_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"creator_type": "<string>",
"creator_id": "<string>",
"parent_task_id": "<string>",
"area_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"origin_type": "<string>",
"metadata": {},
"isolated": true,
"execution_identity_id": "<string>",
"participant_member_ids": [
"<string>"
],
"participant_harnesses": [
"<string>"
],
"has_pending_interaction": true,
"has_active_run": true,
"has_paused_run": true,
"attention_reason": "<string>",
"failure_reason": "<string>",
"failure_class": "<string>",
"unread": true,
"viewer_participated": true,
"pull_request": {
"number": 123,
"state": "<string>",
"html_url": "<string>",
"additions": 123,
"deletions": 123,
"changed_files": 123,
"checks_rollup": "<string>"
},
"attachments": [
{
"id": "<string>",
"workspace_id": "<string>",
"task_id": "<string>",
"message_id": "<string>",
"run_id": "<string>",
"uploader_type": "<string>",
"uploader_id": "<string>",
"filename": "<string>",
"url": "<string>",
"download_url": "<string>",
"markdown_url": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"created_at": "<string>",
"attachment_download_url": "<string>"
}
],
"run_id": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Update task
Workspace member with access to this resource.
Request: Optional title:string, description:string|null, parent_task_id:UUID|null, area_id:UUID|null, attachment_ids:UUID[], status:"done"|"cancelled"|"reopen". A sent title is trimmed and must not be blank; text fields must not contain NUL characters. The JSON body is limited to 1 MiB.
Response: TaskResponse with the same derived fields as GET /api/tasks/{id}.
Status: 200; 400 blank title or invalid lifecycle/relationship; 413 body over 1 MiB. Authentication and resource-access errors follow Overview.
curl --request PUT \
--url https://melso.ai/api/tasks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "done"
}
'import requests
url = "https://melso.ai/api/tasks/{id}"
payload = { "status": "done" }
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({status: 'done'})
};
fetch('https://melso.ai/api/tasks/{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://melso.ai/api/tasks/{id}",
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([
'status' => 'done'
]),
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://melso.ai/api/tasks/{id}"
payload := strings.NewReader("{\n \"status\": \"done\"\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://melso.ai/api/tasks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"done\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/tasks/{id}")
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 \"status\": \"done\"\n}"
response = http.request(request)
puts response.read_body{
"execution": {
"version": "<string>",
"harness": "<string>",
"model": "<string>",
"thinking_level": "<string>",
"service_tier": "<string>",
"worker_id": "<string>"
},
"id": "<string>",
"workspace_id": "<string>",
"number": 123,
"identifier": "<string>",
"title": "<string>",
"description": "<string>",
"status": "cancelled",
"delivered_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"creator_type": "<string>",
"creator_id": "<string>",
"parent_task_id": "<string>",
"area_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"origin_type": "<string>",
"metadata": {},
"isolated": true,
"execution_identity_id": "<string>",
"participant_member_ids": [
"<string>"
],
"participant_harnesses": [
"<string>"
],
"has_pending_interaction": true,
"has_active_run": true,
"has_paused_run": true,
"attention_reason": "<string>",
"failure_reason": "<string>",
"failure_class": "<string>",
"unread": true,
"viewer_participated": true,
"pull_request": {
"number": 123,
"state": "<string>",
"html_url": "<string>",
"additions": 123,
"deletions": 123,
"changed_files": 123,
"checks_rollup": "<string>"
},
"attachments": [
{
"id": "<string>",
"workspace_id": "<string>",
"task_id": "<string>",
"message_id": "<string>",
"run_id": "<string>",
"uploader_type": "<string>",
"uploader_id": "<string>",
"filename": "<string>",
"url": "<string>",
"download_url": "<string>",
"markdown_url": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"created_at": "<string>",
"attachment_download_url": "<string>"
}
],
"run_id": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.
Headers
Company UUID for a personal token on company-scoped operations. A company API key already binds its company.
Path Parameters
id from the corresponding authorized response.
Body
Response
TaskResponse with the same derived fields as GET /api/tasks/{id}.
Show child attributes
Show child attributes
cancelled, done, working, paused, needs_you, to_review, idle Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes