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

ユーザーの休職情報を登録する。
既存の休職情報は上書きされる。
startTime と endTime は、一方のみを指定することはできない。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

user
directory

HTTP Request

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

Path Parameters

ParameterTypeDescription
userId string 

ユーザーを特定する ID (URL エンコードする)

  • ユーザー ID (userId)
  • ログイン ID (email)
  • ユーザーの ExternalKey (externalKey:{userExternalKey})

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

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
startTime string 

休職の開始日時 (YYYY-MM-DDThh:mm:ssTZD)


nullable : true 
endTime string 

休職の終了日時 (YYYY-MM-DDThh:mm:ssTZD)


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