Business roles
Create a businessRole.
Authorization
Authorization AuthorizationBearer <token>
In: header
Request Body
application/json
slug*string
Match
^[a-z0-9-]+$Length
1 <= lengthname*string
Length
2 <= length <= 255description?|
organizationId*string
users?array<>
Default
[]Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.devguard.ch/api/business-roles/" \ -H "Content-Type: application/json" \ -d '{ "slug": "string", "name": "string", "organizationId": "string" }'{
"id": "string",
"slug": "string",
"name": "string",
"description": "string",
"organizationId": "string",
"users": [
"string"
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}How is this guide?