api-docs-icon

Create a new role

POST
/ role

object
object_id
string (uuid)
required

The unique identifier of the Sideko object

object_type
enum
required

The object types that roles can be assigned to.

Allowed Values:
api_project
doc_project
organization
role_definition_id
enum
required
Allowed Values:
ApiProjectAdmin
ApiProjectContributor
ApiProjectViewer
DocProjectAdmin
DocProjectContributor
DocProjectViewer
OrganizationAdmin
OrganizationManager
OrganizationMember
user_id
string (uuid)
required

unique identifier for the user that the role will be granted to

Responses

Role created

application/json
object
definition
object
required

id
string (uuid)
required
object_id
string (uuid)
required

The unique identifier of the Sideko object

object_type
enum
required

The object types that roles can be assigned to.

Allowed Values:
api_project
doc_project
organization
user
object
required

Code Examples

Response