POST
/
api
/
v1
/
workspace
/
{projectSlug}
/
roles

You can read more about the permissions field in the permissions documentation.

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Path Parameters

projectSlug
string
required

Slug of the project to create the role for.

Body

application/json
slug
string
required

The slug of the role.

Required string length: 1 - 64
name
string
required

The name of the role.

Minimum length: 1
permissions
object[]
required

The permissions assigned to the role.

description
string | null

The description for the role.

Response

200 - application/json
role
object
required

Was this page helpful?