Skip to main content
POST
/
workspaces
/
{ws_id}
/
{entity_type}
/
{entity_id}
/
role
/
{role}
Assign a role to a user or group in a workspace
curl --request POST \
  --url https://app.blinkops.com/api/v1/workspaces/{ws_id}/{entity_type}/{entity_id}/role/{role} \
  --header 'BLINK-API-KEY: <api-key>'
This response has no body data.

Authorizations

Use your API key to access BlinkOps API. To generate an API key, please log in to your BlinkOps account and navigate to the API Keys section in the user settings page. Add the generated key to your request headers as BLINK-API-KEY.

Path Parameters

ws_id
string
required

The ID of the workspace

entity_type
string
required

The type of entity to assign the role to (user or group)

entity_id
string
required

The ID of the user or group to assign the role to

role
string
required

The name of the role to assign to the entity

Response