POST /api/role/{workspace_id}/
You can assign a role to a subject into the given workspace for the given scope with this endpoint. If you want to remove the role you can omit the role property.
Servers
- /
Path parameters
Name | Type | Required | Description |
---|---|---|---|
workspace_id |
Integer | Yes |
The workspace in which the role assignment takes place. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
scope_type |
String | Yes |
The scope object type.
Possible values:
|
scope_id |
Integer | Yes |
The ID of the scope object. The scope object limit the role assignment to this scope and all its descendants. |
subject_type |
String | Yes |
The subject type.
Possible values:
|
subject_id |
Integer | Yes |
The subject ID. A subject is an actor that can do operations. |
role |
String | Yes |
The uid of the role you want to assign to the user or team in the given workspace. You can omit this property if you want to remove the role. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.