PULSAR

Create Role

Create a new role.

Authorization

bearerAuth superuser
Authorization<token>

In: header

Scope: superuser

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

Try it live
POST
/roles

This endpoint requires authentication — use the Login page at the top of the API Reference, or paste a token in the Authorization section below.

curl -X POST "https://example.com/roles" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
Empty