Create Role
    • PDF

    Create Role

    • PDF

    Article summary

    • Create a role.

    API

    • POST /roles

    Requests

    Body

    {
    	"descCont": "string",
    	"roleName": "string",
    	"roleType": "string"
    	"sessionExpirationSec": "integer"
    }
    
    ParametersRequirement statusTypeRestrictionsDescription
    descContNstringRole description (max : 300bytes)
    roleNameYstringRole name
    roleTypeYstringRole type (available : Server, Account, Service)
    sessionExpirationSecNintegerRequired when roleType is AccountSession expiration time (available: 600, 1800, 3600,10800)

    Response

    • Response
    Parameter nameRequirement statusTypeDescription
    ProcessResultYProcessResultProcessing result
    • Response examples - Succeeded in registration
    {
      "success": true,
      "id": "roleNo"
    }
    

    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 codeError codeError message
    400400Enter role name
    400400Enter the role name between 2 and 30 characters long.
    400400Specify role type
    400400The role name already exists.
    4009002When the role type is Server, unused session expiration time is not allowed.
    4009002For session expiration time, only [600, 1800, 3600,10,800] seconds can be specified.
    4099012Reached the maximum number of roles that can be created
    4009010Only characters, numbers and special characters of "._-" are allowed, and it must start with a character.

    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.