updateCategory
    • PDF

    updateCategory

    • PDF

    Article Summary

    Modify the name and location of the category.

    PUT https://{endpoint}/category/{categorySid}/name-location
    

    Request

    Request Parameters

    PropertyRequiredTypeLimitationDescription
    categorySidYesIntegercategory sid
    categoryNameNoStringMax:100The name of the category to modify
    parentSidNoIntegerCategory sid value must be enteredparent category sid
    lowerSidNoIntegerTemplate or category sid to be placed under the category specified by the user (For positioning, ignore if not present)

    Response

    HTTP status codeDescription
    200Finished modifying categories
    400Authentication failed, invalid request.
    500Server 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

    PropertyRequiredTypeLimitationDescription
    sidYesIntegersid of the modified category
    parentSidYesIntegerParent category sid of the modified category
    nameYesStringcategory name

    Error Codes

    HTTP status codeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permissions
    40377202No subscription
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301Default project not found
    50077302Error in working with external system API
    50077303Other INTERNAL_SERVER_ERROR

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.