manage:attendance permission. Supplying windows replaces the whole weekly schedule; omitting it leaves the schedule alone.core.session_token: ********************Authorization: Bearer ********************curl --location --request PATCH '/attendance/slots/' \
--header 'Content-Type: application/json' \
--data '{
"label": "string",
"requiresCheckOut": true,
"requiresGeofence": true,
"photoPolicy": "OPTIONAL",
"appliesToRoles": [
"string"
],
"sortOrder": 0,
"isActive": true,
"windows": [
{
"dayOfWeek": 0,
"isActive": true,
"checkInOpenAt": "string",
"startAt": "string",
"checkInCloseAt": "string",
"checkOutOpenAt": "string",
"endAt": "string",
"checkOutCloseAt": "string",
"lateToleranceMinutes": 0,
"earlyLeaveToleranceMinutes": 0
}
]
}'{
"success": true,
"message": "string",
"meta": {
"page": 0,
"limit": 0,
"total": 0
},
"errors": [
{
"code": "CR-100001",
"field": "string",
"message": "string"
}
],
"result": {
"id": "string",
"code": "string",
"label": "string",
"kind": "DAILY",
"requiresCheckOut": true,
"requiresGeofence": true,
"photoPolicy": "OPTIONAL",
"appliesToRoles": [
"string"
],
"sortOrder": 0,
"isActive": true,
"windows": [
{
"id": "string",
"slotId": "string",
"dayOfWeek": 0,
"isActive": true,
"checkInOpenAt": "string",
"startAt": "string",
"checkInCloseAt": "string",
"checkOutOpenAt": "string",
"endAt": "string",
"checkOutCloseAt": "string",
"lateToleranceMinutes": 0,
"earlyLeaveToleranceMinutes": 0
}
],
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
}