Skip to main content
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"
}
'
{
  "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"
  }
}
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

Authorization
string
header
required

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

id
string
required

The task's id (Mongo ObjectId).

date
string<date>
required

The occurrence date (YYYY-MM-DD).

Body

application/json
status
enum<string>
required

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.

status
integer
required

HTTP status code, echoed in the body.

success
boolean
required

Whether the request succeeded.

message
string
required

Human-readable result message.

data
object

A per-occurrence response for a recurring task.