Create a role

POST /v1/security/roles
application/json

Body Required

  • role string

Responses

  • 201 application/json

    Created

    Hide response attribute Show response attribute object
    • role string
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer
    • message string
  • 409 application/json

    Conflict

    Hide response attributes Show response attributes object
    • code integer
    • message string
POST /v1/security/roles
curl \
 --request POST 'http://localhost:9644/v1/security/roles' \
 --header "Content-Type: application/json" \
 --data '{"role":"string"}'
Request examples
{
  "role": "string"
}
Response examples (201)
{
  "role": "string"
}
Response examples (400)
{
  "code": 42,
  "message": "string"
}
Response examples (409)
{
  "code": 42,
  "message": "string"
}