PATCH/users/{userId}/task-categories/{categoryId}

Updates part of a task category of a user.

Authorization

oauth2

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

Scope

task

HTTP Request

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

Path Parameters

ParameterTypeDescription
userId string 

User ID


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

Task category ID


required
example : 6b943e91-9f5f-49fa-8fec-8921bc474a96 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
categoryName string 

New category name

 

Request Example

example

1{2  "categoryName": "Category 5678"3}

Response

HTTP 200

OK

PropertyTypeDescription
categoryId string 

Task category ID (if it is the default category: default)

 
categoryName string 

Task category name

 

Response Example

example

1{2  "categoryId": "6b943e91-9f5f-49fa-8fec-8921bc474a96",3  "categoryName": "Category 1234"4}