Modify Role
- Print
- PDF
Modify Role
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Modify role information.
API
- PUT /roles/{roleNo}
Requests
Path variables
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
roleNo | Y | String | Role No |
Body
{
"descCont": "string",
"roleName": "string"
"roleType": "string",
"sessionExpirationSec": "integer",
}
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
descCont | N | string | Role description (max : 300bytes) | |
roleName | N | string | Role name | |
roleType | Y | string | Role type (available : Server, Account, Service) | |
sessionExpirationSec | N | integer | Required when roleType is Account | Session expiration time (available: 600, 1800, 3600,10800) |
Response
- Response
Parameter name | Requirement status | Type | Description |
---|---|---|---|
ProcessResult | Y | ProcessResult | Processing result |
- Response examples - Success
{
"success": true
}
Errors
Errors that may occur while using this action are listed below. For error response format, see ErrorResponse.
For more information about common errors, see the NAVER Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
401 | 30 | Wrong roleNo |
400 | 400 | Enter the role name between 2 and 30 characters long. |
400 | 400 | Specify role type |
400 | 400 | The role type is wrong |
400 | 9002 | When the role type is Server, the unused session expiration time is not allowed. |
400 | 9002 | For session expiration time, only [600, 1800, 3600,10,800] seconds can be specified. |
400 | 9010 | Only characters, numbers, and "-" are allowed, and it must start with a character. |
Was this article helpful?