Update a task
curl --request PATCH \
--url https://app.solya.app/api/tasks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"status": "DONE"
}
'import requests
url = "https://app.solya.app/api/tasks/{id}"
payload = {
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"status": "DONE"
}
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({assigneeId: '550e8400-e29b-41d4-a716-446655440030', status: 'DONE'})
};
fetch('https://app.solya.app/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://app.solya.app/api/tasks/{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([
'assigneeId' => '550e8400-e29b-41d4-a716-446655440030',
'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://app.solya.app/api/tasks/{id}"
payload := strings.NewReader("{\n \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\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://app.solya.app/api/tasks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/tasks/{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 \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\n}"
response = http.request(request)
puts response.read_body{
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"category": "APPROVAL",
"createdAt": "2026-06-01T08:00:00.000Z",
"domain": null,
"dueDate": "2026-07-01T00:00:00.000Z",
"evidence": null,
"id": "550e8400-e29b-41d4-a716-446655440001",
"kind": null,
"organizationId": "550e8400-e29b-41d4-a716-446655440010",
"payload": null,
"priority": "HIGH",
"shopId": null,
"sourceId": "550e8400-e29b-41d4-a716-446655440020",
"sourceType": "PLAN_APPROVAL",
"status": "DONE",
"updatedAt": "2026-06-19T10:00:00.000Z",
"variantId": null,
"workflowRunId": null
}Tasks
Update a task
Updates a task’s status, assignee, and/or priority. Each change writes the appropriate audit event to task_events (TASK_STATUS_CHANGED / TASK_CLOSED, TASK_ASSIGNED, TASK_PRIORITY_CHANGED). Returns the updated task. Returns 404 when the task does not exist.
PATCH
/
api
/
tasks
/
{id}
Update a task
curl --request PATCH \
--url https://app.solya.app/api/tasks/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"status": "DONE"
}
'import requests
url = "https://app.solya.app/api/tasks/{id}"
payload = {
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"status": "DONE"
}
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({assigneeId: '550e8400-e29b-41d4-a716-446655440030', status: 'DONE'})
};
fetch('https://app.solya.app/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://app.solya.app/api/tasks/{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([
'assigneeId' => '550e8400-e29b-41d4-a716-446655440030',
'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://app.solya.app/api/tasks/{id}"
payload := strings.NewReader("{\n \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\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://app.solya.app/api/tasks/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/tasks/{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 \"assigneeId\": \"550e8400-e29b-41d4-a716-446655440030\",\n \"status\": \"DONE\"\n}"
response = http.request(request)
puts response.read_body{
"assigneeId": "550e8400-e29b-41d4-a716-446655440030",
"category": "APPROVAL",
"createdAt": "2026-06-01T08:00:00.000Z",
"domain": null,
"dueDate": "2026-07-01T00:00:00.000Z",
"evidence": null,
"id": "550e8400-e29b-41d4-a716-446655440001",
"kind": null,
"organizationId": "550e8400-e29b-41d4-a716-446655440010",
"payload": null,
"priority": "HIGH",
"shopId": null,
"sourceId": "550e8400-e29b-41d4-a716-446655440020",
"sourceType": "PLAN_APPROVAL",
"status": "DONE",
"updatedAt": "2026-06-19T10:00:00.000Z",
"variantId": null,
"workflowRunId": null
}Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Path Parameters
Unique identifier of the resource (UUID)
Body
application/json
User ID to assign this task to, or null to clear the assignment.
Update the task priority. Allowed values: LOW, MEDIUM, HIGH, URGENT.
Available options:
LOW, MEDIUM, HIGH, URGENT Transition the task to this status. Allowed values: OPEN, IN_PROGRESS, DONE, DISMISSED.
Available options:
OPEN, IN_PROGRESS, DONE, DISMISSED ⌘I

