Skip to content

Update Resource Unavailabilities

Request

Update an existing unavailability for a resource.

Security
oAuth2ClientCredentials
Path
resource_idstring, (uuid)(Resource Id)required
idstring, (uuid)(Id)required
Bodyapplication/jsonrequired
external_idstring or null(External Id)
Any of:

External identifier of the unavailability

string
start_timestring, (date-time)(Start Time)required

Start time of the unavailability

end_timestring or null(End Time)
Any of:

End time of the unavailability, leave empty for open interval

string (date-time)
reasonstring(UnavailabilityReason)required
Enum:"DRIVER_FUNERAL""DRIVER_HOLIDAY""DRIVER_JOB_APPLICATION_LEAVE""DRIVER_LATE_START_EARLY_LEAVE""DRIVER_MEDICAL_EXAM""DRIVER_OFF_SHIFT_PATTERN""DRIVER_OTHER""DRIVER_PARENTAL_LEAVE""DRIVER_PUBLIC_HOLIDAY""DRIVER_RECUP"
descriptionstring or null(Description)
Any of:
string
PUT
/v1/resources/resource/{resource_id}/unavailability/{id}
{ "external_id": "string", "start_time": "2019-08-24T14:15:22Z", "end_time": "2019-08-24T14:15:22Z", "reason": "DRIVER_FUNERAL", "description": "string" }

Responses

Successful Response

Bodyapplication/json
external_idstring or null(External Id)
Any of:

External identifier of the unavailability

string
start_timestring, (date-time)(Start Time)required

Start time of the unavailability

end_timestring or null(End Time)
Any of:

End time of the unavailability, leave empty for open interval

string (date-time)
reasonstring(UnavailabilityReason)required
Enum:"DRIVER_FUNERAL""DRIVER_HOLIDAY""DRIVER_JOB_APPLICATION_LEAVE""DRIVER_LATE_START_EARLY_LEAVE""DRIVER_MEDICAL_EXAM""DRIVER_OFF_SHIFT_PATTERN""DRIVER_OTHER""DRIVER_PARENTAL_LEAVE""DRIVER_PUBLIC_HOLIDAY""DRIVER_RECUP"
descriptionstring or null(Description)
Any of:
string
idstring, (uuid)(Id)required

Unique identifier of the unavailability

Response
{ "external_id": "string", "start_time": "2019-08-24T14:15:22Z", "end_time": "2019-08-24T14:15:22Z", "reason": "DRIVER_FUNERAL", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }