updateCategory
- Print
- PDF
updateCategory
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Modify the name and location of the category.
PUT https://{endpoint}/category/{categorySid}/name-location
Request
Request Parameters
Property | Required | Type | Limitation | Description |
---|---|---|---|---|
categorySid | Yes | Integer | category sid | |
categoryName | No | String | Max:100 | The name of the category to modify |
parentSid | No | Integer | Category sid value must be entered | parent category sid |
lowerSid | No | Integer | Template or category sid to be placed under the category specified by the user (For positioning, ignore if not present) |
Response
HTTP status code | Description |
---|---|
200 | Finished modifying categories |
400 | Authentication failed, invalid request. |
500 | Server error |
Example
Request Example
POST https://mail.apigw.ntruss.com/api/v1/category/256/name-location
{
"categoryName": "testCategory",
"parentSid": -1,
"lowerSid": 254
}
Response Example
{
"sid": 256,
"parentSid": 252,
"name": "testCategory"
}
Properties
Property | Required | Type | Limitation | Description |
---|---|---|---|---|
sid | Yes | Integer | sid of the modified category | |
parentSid | Yes | Integer | Parent category sid of the modified category | |
name | Yes | String | category name |
Error Codes
HTTP status code | Return code | Response message |
---|---|---|
400 | 77101 | Error in login information |
400 | 77102 | BAD_REQUEST |
400 | 77103 | Resource not found |
403 | 77201 | No permissions |
403 | 77202 | No subscription |
405 | 77001 | METHOD_NOT_ALLOWED |
415 | 77002 | UNSUPPORTED_MEDIA_TYPE |
500 | 77301 | Default project not found |
500 | 77302 | Error in working with external system API |
500 | 77303 | Other INTERNAL_SERVER_ERROR |
Was this article helpful?