Updates a workspace absence. The submitted dates and region determine when it applies.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
workspaceAbsenceIdstringRequiredThe workspace absence to update.
Request body Required
Updated workspace absence details including start date, end date, description, and optional region.
application/json
startOnstringRequiredThe start time of the workspace absence.
endOnstringRequiredThe end time of the workspace absence.
descriptionstringRequired0 maxLength: 1000 The description of the workspace absence.
regionIdstring or nullOptional(optional) The id of the absence region to limit the workspace absence to. If not set, the workspace absence will apply to all users in the workspace. Otherwise, it will only apply to users in the specified absence region.
isHalfDayOnStartbooleanOptionalIf it's true, and it's a single day absence means that the absence is for the first half of the workday. If it's a multi day absence, it will start on the second half of the first day of the absence period.
isHalfDayOnEndbooleanOptionalIf it's true, and it's a single day absence means that the absence is for the second half of the workday. If it's a multi day absence it will end on the first half of the last day of the absence period.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
startOnstringOptionalThe start time of the workspace absence.
endOnstringOptionalThe end time of the workspace absence.
descriptionstring or nullOptionalThe description of the absence.
regionIdstring or nullOptionalThe (optional) regionId of the workspace absence. If null, the absence is global for the entire workspace. Otherwise, it will be applied only to the users of the region.
regionstring or nullOptionalThe name of the region of the workspace absence. Null if the absence is global for the entire workspace.
isReadOnlybooleanOptionalIf it's true it means that this Absence is read-only and cannot be edited/deleted by the user.
isHalfDayOnStartbooleanOptionalIf it's true and it's a single day absence means that the absence is for the first half of the workday. If it's a multi day absence it started on the second half of the first day of the absence period.
isHalfDayOnEndbooleanOptionalIf it's true and it's a single day absence means that the absence is for the second half of the workday. If it's a multi day absence it ended on the first half of the last day of the absence period.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.