This guide describes how to integrate and send shifts shift data to twinzo's REST API.
Configuration
To connect sensor values with 3D spaces, visit this course page:
The main information about how to use twinzo´s twinzo's REST API and how to authorize your access:
1f331Basics
1f510Authorization
Swagger Shift Section
The Swagger Shift section provides a detailed description of the API for shift data. There are two main endpoints in the Shift section for send sending or update data:
POST /shifts/
Used to create a new shift
PATCH /shifts/{id}
Used to update shift
Example
POST Shifts create a new shift
PATCH Shifts update already exists a shift
POST Shifts
Code Block | ||
---|---|---|
| ||
[ { "Id": 1, "Title": "Morning Shift", "BranchId": 1, "StartTime": 21600000, "StopTime": 50400000 } ] |
PATCH Shifts
Code Block | ||
---|---|---|
| ||
[ { "StopTime": 60400000 } ] |
Data Properties
Data payload JSON object has five properties:
Id | Shift ID |
Title | Shift´s title |
BranchId | Branch ID where the shift will be used |
StartTime | Start time of the shift [in milisecondsmilliseconds] |
StopTime | End time of the shift [in milisecondsmilliseconds] |
Note |
---|
StartTime / StopTime explanation: 60000 - 00:01 (12:01 AM) |