POST/users/{userId}/set-leave-of-absence
ユーザーの休職情報を登録する。
既存の休職情報は上書きされる。
startTime と endTime は、一方のみを指定することはできない。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
user
directory
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザーを特定する ID (URL エンコードする)
required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Property | Type | Description |
|---|---|---|
| startTime | string | 休職の開始日時 (YYYY-MM-DDThh:mm:ssTZD) nullable : true |
| endTime | string | 休職の終了日時 (YYYY-MM-DDThh:mm:ssTZD) nullable : true |
example
1{2 "startTime": "2017-03-16T09:00:00+09:00",3 "endTime": "2017-03-16T09:00:00+18:00"4}No Content
Bad Request
Forbidden
Not Found