Update task assignee
curl --request POST \
--url https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": 5,
"comment": "This task is high priority. Please review by EOD."
}
'import requests
url = "https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}"
payload = {
"assignee": 5,
"comment": "This task is high priority. Please review by EOD."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({assignee: 5, comment: 'This task is high priority. Please review by EOD.'})
};
fetch('https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}', 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.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}",
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([
'assignee' => 5,
'comment' => 'This task is high priority. Please review by EOD.'
]),
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.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}"
payload := strings.NewReader("{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}"
response = http.request(request)
puts response.read_body{
"error": 400,
"message": "Invalid request parameters"
}{
"error": 400,
"message": "Invalid request parameters"
}Tasks
Update Task Assignee
Change assignee for this task
POST
/
api
/
taskmanager
/
v1
/
task
/
updateAssignee
/
{taskId}
Update task assignee
curl --request POST \
--url https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignee": 5,
"comment": "This task is high priority. Please review by EOD."
}
'import requests
url = "https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}"
payload = {
"assignee": 5,
"comment": "This task is high priority. Please review by EOD."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({assignee: 5, comment: 'This task is high priority. Please review by EOD.'})
};
fetch('https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}', 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.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}",
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([
'assignee' => 5,
'comment' => 'This task is high priority. Please review by EOD.'
]),
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.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}"
payload := strings.NewReader("{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": 5,\n \"comment\": \"This task is high priority. Please review by EOD.\"\n}"
response = http.request(request)
puts response.read_body{
"error": 400,
"message": "Invalid request parameters"
}{
"error": 400,
"message": "Invalid request parameters"
}Overview
Update the assignee of a specific task. This endpoint allows you to reassign tasks to different team members or unassign tasks.Path Parameters
integer
required
The unique identifier of the task to update the assignee for.Example:
456Request Body
integer
required
User ID of the person to assign this task to. Set to
null to unassign the task.Example: 5string
Optional comment to include in the assignment notification.Example:
"This task is high priority. Please review by EOD."Response
integer
The unique identifier of the task.
string
The name of the task.
integer
The ID of the project this task belongs to.
integer
User ID of the person now assigned to this task.
string
The timestamp when the assignee was updated (ISO 8601 format).
Example Request
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the task
Example:
456
Body
application/json
Response
Update assignee response