API Referenceadmin
Create role
Create a new role. Requires IAM admin. Cannot create role with hierarchy > your own.
AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X post "https://prisma.your-company.com/api/v1/admin/platform-roles" \ -H "Content-Type: application/json" \ -d '{ "description": "Can manage test runs", "display_name": "QA Engineer", "hierarchy_value": 50, "name": "qa_engineer", "scope": "workspace" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"display_name": "string",
"description": "string",
"scope": "organization",
"hierarchy_value": 0,
"is_system": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"parent_role_id": "7ea77ce3-4218-4d39-ad84-02444a2f4ee7",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
