Update Task
Partially updates a task or appointment. Only non-null fields in the request body are applied.
Notes:
- To mark an entry as completed or not, use the finish / unfinish endpoints instead.
- At least one of content, startAt, endAt, address must be supplied; an entirely empty payload returns 400 MISSING_PARAMETER.
- Caller must have manage permission on the entry’s lead.
curl --request PUT \
--url https://api.lofty.com/v2.0/tasks/{taskId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Send an email to my lead",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
'import requests
url = "https://api.lofty.com/v2.0/tasks/{taskId}"
payload = {
"content": "Send an email to my lead",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
content: 'Send an email to my lead',
startAt: '2026-03-01T15:00:00-08:00',
endAt: '2026-03-01T16:00:00-08:00',
timeZoneCode: 'America/Los_Angeles',
address: '123 Main St, Los Angeles, CA'
})
};
fetch('https://api.lofty.com/v2.0/tasks/{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://api.lofty.com/v2.0/tasks/{taskId}",
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([
'content' => 'Send an email to my lead',
'startAt' => '2026-03-01T15:00:00-08:00',
'endAt' => '2026-03-01T16:00:00-08:00',
'timeZoneCode' => 'America/Los_Angeles',
'address' => '123 Main St, Los Angeles, CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v2.0/tasks/{taskId}"
payload := strings.NewReader("{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.lofty.com/v2.0/tasks/{taskId}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation successful"
}"<string>""<string>""<string>""<string>"Path Parameters
ID of the task or appointment to update.
x >= 1Body
Partial update payload. Only non-null fields are applied.
Description of the task
"Send an email to my lead"
When this task/appointment should start. ISO8601 format in specified timezone, e.g., '2026-03-01T15:00:00-08:00'
"2026-03-01T15:00:00-08:00"
When this task/appointment should end. ISO8601 format in specified timezone, e.g., '2026-03-01T16:00:00-08:00'. For regular tasks, this represents the deadline
"2026-03-01T16:00:00-08:00"
Timezone code for this task/appointment
"America/Los_Angeles"
Address/location for appointment type tasks
"123 Main St, Los Angeles, CA"
Response
Task updated. Response body is a simple message envelope.
Generic message response
Result message
"Operation successful"
curl --request PUT \
--url https://api.lofty.com/v2.0/tasks/{taskId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Send an email to my lead",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
'import requests
url = "https://api.lofty.com/v2.0/tasks/{taskId}"
payload = {
"content": "Send an email to my lead",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
content: 'Send an email to my lead',
startAt: '2026-03-01T15:00:00-08:00',
endAt: '2026-03-01T16:00:00-08:00',
timeZoneCode: 'America/Los_Angeles',
address: '123 Main St, Los Angeles, CA'
})
};
fetch('https://api.lofty.com/v2.0/tasks/{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://api.lofty.com/v2.0/tasks/{taskId}",
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([
'content' => 'Send an email to my lead',
'startAt' => '2026-03-01T15:00:00-08:00',
'endAt' => '2026-03-01T16:00:00-08:00',
'timeZoneCode' => 'America/Los_Angeles',
'address' => '123 Main St, Los Angeles, CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.lofty.com/v2.0/tasks/{taskId}"
payload := strings.NewReader("{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.lofty.com/v2.0/tasks/{taskId}")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"content\": \"Send an email to my lead\",\n \"startAt\": \"2026-03-01T15:00:00-08:00\",\n \"endAt\": \"2026-03-01T16:00:00-08:00\",\n \"timeZoneCode\": \"America/Los_Angeles\",\n \"address\": \"123 Main St, Los Angeles, CA\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation successful"
}"<string>""<string>""<string>""<string>"