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

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

projectSlug
string
required

Slug of the project to create the role for.

Body

application/json
name
string
required

The name of the role.

Minimum length: 1
permissions
object[]
required

The permissions assigned to the role.

slug
string
required

The slug of the role.

Minimum length: 1
description
string

The description for the role.

Response

200 - application/json
role
object
required