POST/users/{userId}/set-leave-of-absence

Sets a leave of absence for a member.
The leave of absence setting overwrites the previous one if it exists, or is newly added if not.
Both startTime and endTime must be specified.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

user
directory

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/set-leave-of-absence

Path Parameters

ParameterTypeDescription
userId string 

Member ID
- Email address
- Resource ID
- External key in "externalKey:{externalKey}" format


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
startTime string 

Start time ISO-8601


nullable : true 
endTime string 

End time ISO-8601


nullable : true 

Request Example

example

1{2  "startTime": "2017-03-16T09:00:00+09:00",3  "endTime": "2017-03-16T09:00:00+18:00"4}

Response

HTTP 204

No Content

HTTP 400

Bad Request

HTTP 403

Forbidden

HTTP 404

Not Found