- Docs
- Api%2Freference%2Forganizations%2FCreateRole
Create an role
Create a new role within the organization with specified permissions and settings. This endpoint allows organization administrators to define custom roles with specific access levels and capabilities for member management.
AuthorizationBearer <token>
In: header
Path Parameters
organizationId*string
Unique identifier of the organization
Request Body
application/json
role details
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api-testnet.dual.network/organizations/string/roles" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "permissions": [ { "resource": "api-keys", "crud": { "read": true, "create": true, "update": true, "delete": true } } ] }'{
"id": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}