Get incremental changes
This endpoint returns the assignments that have undergone changes since the date indicated in the request, with one element per employee and day combination.
GET /api/v2/businesses/{businessId}/assignments/incremental?since={yyyy-MM-ddTHH:mm:ss.SSS}
|
The |
If the data included in the request is correct, the response will contain a list with the current state of the assignments that have changed.
Response example
[
{
"person": "E1",
"virtual": false,
"product": "0001",
"day": "2026-11-23"
},
{
"person": "E2",
"orquestId": "1634387069",
"presence": {
"worked": false,
"timeFrames": [
{
"startMinuteDay": 0,
"duration": 1440,
"paid": false,
"worked": false
}
]
},
"virtual": false,
"product": "0001",
"day": "2026-11-23"
},
{
"person": "E3",
"orquestId": "1634387022",
"presence": {
"worked": true,
"timeFrames": [
{
"startMinuteDay": 600,
"duration": 120,
"paid": true,
"location": {
"color": "#c7d0e9",
"description": "Opening tasks",
"name": "OPENING",
"shortName": "OP",
"requiredLevel": 2,
"priority": 4,
"maxResources": 1,
"type": "FIXED",
"shouldAvoidOvercover": true,
"system": false,
"category": "FIXED",
"product": "0002",
"id": "01",
"zone": "General"
},
"worked": true
}
]
},
"virtual": false,
"product": "0002",
"day": "2026-11-23"
},
{
"person": "E1",
"orquestId": "1634387023",
"presence": {
"worked": true,
"timeFrames": [
{
"startMinuteDay": 360,
"duration": 120,
"paid": true,
"location": {
"color": "#c7d0e9",
"description": "Opening tasks",
"name": "OPENING",
"shortName": "OP",
"requiredLevel": 2,
"priority": 4,
"maxResources": 1,
"type": "FIXED",
"shouldAvoidOvercover": true,
"system": false,
"category": "FIXED",
"product": "0001",
"id": "01",
"zone": "General"
},
"worked": true
}
]
},
"virtual": false,
"product": "0001",
"day": "2026-11-24"
}
]
Details
-
person: external identifier of the employee.
-
orquestId: internal identifier of the assignment in Orquest. Not included if the assignment has been deleted.
-
presence: assignment type containing the work periods (timeFrames) with their locations. Not included if the assignment has been deleted. It contains the following fields:
-
startTime: start of the assignment in minutes elapsed since the beginning of the day (00:00). It may not be included, since the actual start is obtained from the intervals (timeFrames).
-
duration: duration of the assignment in minutes. It may not be included, since the actual duration is obtained as the sum of the durations of the intervals (timeFrames).
-
worked: whether the assignment or presence type is worked (
true) or is a rest day (false). -
timeFrames: set of time intervals containing the tasks to be performed. For each interval, the following information is included:
-
startMinuteDay: start of the interval in minutes elapsed since the beginning of the day (00:00).
-
duration: duration of the interval in minutes.
-
paid: whether the interval, whether work or rest, is paid (
true) or not (false). -
worked: determines whether the timeFrame has an assigned task (
true) or not (false). -
location: task to be performed in the defined interval. For each task, the following information is included:
-
color: color configured in Orquest for the task.
-
description: description of the task defined in Orquest.
-
name: name of the task in Orquest.
-
shortName: task abbreviation in Orquest.
-
requiredLevel: skill level required to perform the task. Ranges from
0(no training needed) to3(maximum training level) and must be previously configured in Orquest. -
priority: priority of task coverage. Ranges from
0(low) to5(high) and must be previously configured in Orquest. -
maxResources: limit of people for the task.
-
type: type of task, whether it is fixed, variable, or non-plannable (
FIXED,VARIABLE,NON_PLANIFIABLE). -
shouldAvoidOvercover: if this parameter is
true, the task will not be overcovered. -
system: determines if the task was created by the system (
true) or by the user (false). -
category: category of the task previously configured in Orquest.
-
product: external identifier of the product or section.
-
id: external identifier of the task.
-
metadata: any additional data that has been previously configured for the task in Orquest. The metadata structure must be previously configured.
-
zone: physical place in the service (store, restaurant, etc.) where the location is carried out.
-
-
-
-
virtual: indicates whether the employee is virtual (
true) or real (false). -
product: external identifier of the product or section of the assignment. If the assignment has been deleted, it is the product in which the change was recorded.
-
day: day of the assignment, in
yyyy-MM-ddformat.
In this example, since the since date, four employee and day combinations have changed, in two different products (0001 and 0002):
-
Deleted assignment: employee
E1no longer has an assignment on2026-11-23in product0001. That is why the element does not includeorquestIdorpresence. -
Day off: employee
E2has2026-11-23off. The presence is not worked ("worked": false) and contains a single interval covering the whole day (0to1440minutes) without a task (location). -
Assignments:
-
Employee
E3has an assignment on2026-11-23in product0002, with theOPENINGtask from 10:00 to 12:00 (600to720minutes). -
Employee
E1has an assignment on2026-11-24in product0001, with theOPENINGtask from 06:00 to 08:00 (360to480minutes). Since it is a different day, it appears as a separate element from their deleted assignment on2026-11-23.
-
|
The response does not indicate whether an assignment has been created or modified: it only reflects its current state. |
Considerations
Orquest only stores the last 45 days of incremental changes. To see changes made before that period, assignments will need to be queried through another method (by service, by product or by employee).
The response contains one element for each employee and day combination in which the assignment has changed at least once between the since date and the time of the request.
The query returns the current state of the assignment: if an employee’s assignment on a given day changes several times during that period, only one element with its final state is received.
The since parameter is always interpreted in UTC, so it must not include a time zone.
Pagination
The response to this request is paginated, so after the first call, the response headers (Headers) will include a cursor to the next page (Next) that indicates the URL of the next request. To get the next page of data, a request must be made to that URL with the cursor:
GET /api/v2/businesses/{businessId}/assignments/incremental?cursor=******
It is necessary to repeat this process until the response no longer contains the Next header, indicating that pagination is complete and there is no more data to display.
|
Using this endpoint requires that the functionality be activated in advance by the Orquest team, due to its computational and memory costs when performing audits on certain entities. |
Error codes
In addition to the common errors, this endpoint can return the following codes:
| Code | Message | Description |
|---|---|---|
|
Business not authorized |
The business does not have incremental change tracking enabled. It is recommended to contact the Orquest team to enable it. |
Since cannot be more than 45 days in past |
The date indicated in |
|
- |
The specified cursor is not valid. It is recommended to use the cursor exactly as received in the |
|
|
- |
Neither |
Useful links
What is an assignment?