Update a task occurrence's status
curl --request PATCH \
--url https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "done"
}
'import requests
url = "https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status"
payload = { "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({status: 'done'})
};
fetch('https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status', 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.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status",
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([
'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://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status"
payload := strings.NewReader("{\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://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"done\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status")
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 \"status\": \"done\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Occurrence status updated",
"data": {
"_id": "66c2010a1b2c3d4e5f60718a",
"task": "66c1f0a3c2d4e5f6a7b8c9d0",
"date": "2026-06-22",
"status": "done",
"respondedBy": "66a0c1d2e3f4a5b6c7d8e9f0",
"createdAt": "2026-06-22T09:00:00.000Z",
"updatedAt": "2026-06-22T10:15:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Resource not found",
"data": null
}Tasks
Update occurrence status
Set the status of a single occurrence of a recurring task. Requires the WRITE_TASKS scope.
PATCH
/
tasks
/
{id}
/
occurrences
/
{date}
/
status
Update a task occurrence's status
curl --request PATCH \
--url https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "done"
}
'import requests
url = "https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status"
payload = { "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({status: 'done'})
};
fetch('https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status', 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.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status",
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([
'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://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status"
payload := strings.NewReader("{\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://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"done\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/tasks/{id}/occurrences/{date}/status")
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 \"status\": \"done\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Occurrence status updated",
"data": {
"_id": "66c2010a1b2c3d4e5f60718a",
"task": "66c1f0a3c2d4e5f6a7b8c9d0",
"date": "2026-06-22",
"status": "done",
"respondedBy": "66a0c1d2e3f4a5b6c7d8e9f0",
"createdAt": "2026-06-22T09:00:00.000Z",
"updatedAt": "2026-06-22T10:15:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Resource not found",
"data": null
}Updates the status of the occurrence identified by its
date (YYYY-MM-DD). The store is bound to your app token server-side — never send a shop id.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
The task's id (Mongo ObjectId).
The occurrence date (YYYY-MM-DD).
Body
application/json
New status for this occurrence.
Available options:
to do, in progress, done, skipped Response
The updated occurrence response.
Standard Salesive response envelope. The operation-specific payload is carried in data.
Was this page helpful?
⌘I

