Create role
POST /api/v1/roles
POST
/api/v1/roles
Creates a new role.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
name
required
string
role_permissions
required
Array<string>
Responses
Section titled “ Responses ”Successful
object
id
required
integer
Example
12345 name
required
string
Example
Admin role_permissions
required
Array<string>
builtin
required
boolean
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z updated_at
required
string format: date-time
Example
2023-08-23T10:30:00.000ZUnauthorized
object
message
required
string
Example
Record not foundForbidden
object
message
required
string
Example
Record not foundUnprocessable Entity
object
message
required
string
Example
Failed to save errors
required
object
key
additional properties
Array<string>
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}