POST/users/{userId}/task-categories

ユーザーにタスクのカテゴリーを登録する。

Authorization

oauth2

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

Scope

task

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/task-categories

Path Parameters

ParameterTypeDescription
userId string 

ユーザー ID


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

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
categoryName string 

タスクカテゴリー作成

 

Request Example

example

1{2  "categoryName": "カテゴリー 1234"3}

Response

HTTP 201

OK

PropertyTypeDescription
categoryId string 

ユーザーのタスクカテゴリー ID (既定のカテゴリー: default)

 
categoryName string 

ユーザーのタスクカテゴリー名

 

Response Example

example

1{2  "categoryId": "6b943e91-9f5f-49fa-8fec-8921bc474a96",3  "categoryName": "カテゴリー 1234"4}