Back to Platform

POST /roles

POST
/roles

POST operation for /roles

Authorization

ApiKeyAuth
Authorization<token>

API key authentication. Format: Your API key (no "Token" prefix needed)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://dev-rest.onboard.io/roles" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "description": "string",    "role_type": "internal"  }'
{
  "id": 1,
  "name": "string",
  "description": "string",
  "created_at": "2021-01-01T00:00:00Z",
  "role_type": "internal",
  "order": 1,
  "created_by": "string"
}
Empty
Empty
Empty

How is this guide?