Get Permission Entities
This API lists all permission entities associated with a connector.| Field | Value |
|---|---|
| Method | GET |
| Endpoint | <host_url>/api/public/bot/:botId/connector/:connectorId/permission-entities |
| Content-Type | application/json |
| Authorization | auth: <JWT Token> |
| API Scope | Permission Entity Management |
Query Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| Bot ID | Provide your application ID here. | Yes |
| Connector ID | Unique ID of the connector for which permission entities are requested. | Yes |
skip | Number of records to skip from the beginning of the response. | No |
limit | Maximum number of records to return in the response. | No |
Response Parameters
| Parameter | Description |
|---|---|
| Entity Id | Unique identifier of the field used to create the permission entity. |
name | Name of the entity field as it appears in the source. |
meta | Meta information about the entity. |
userIds | Array of users associated with the permission entity. |
sourceType | Source of the entity. Indicates the content source for which the permission entity was created (for example, googleDrive). |
type | Type of entity. Indicates the user permission type (for example, userCriteria for ServiceNow). |
Sample Response
Get Permission Entity by ID
This API returns the details of a specific permission entity, including the users associated with it.| Field | Value |
|---|---|
| Method | GET |
| Endpoint | <host_url>/api/public/bot/:botId/connector/:connectorId/permission-entities/:entityId |
| Content-Type | application/json |
| Authorization | auth: <JWT Token> |
| API Scope | Permission Entity Management |
Query Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| Bot ID | Provide your application ID here. | Yes |
| Connector ID | Unique ID of the connector for which permission entities are requested. | Yes |
| Entity Id | Unique ID of the permission entity. | Yes |
Sample Response
Update Permission Entity by ID
This API associates users with a permission entity. Use it to add new users to an entity.| Field | Value |
|---|---|
| Method | PUT |
| Endpoint | <host_url>/api/public/bot/:botId/connector/:connectorId/permission-entities/:entityId |
| Content-Type | application/json |
| Authorization | auth: <JWT Token> |
| API Scope | Permission Entity Management |
Query Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| Stream ID | Provide your application ID here. | Yes |
| Connector ID | Unique ID of the connector for which permission entities are to be updated. | Yes |
| Entity Id | Unique ID of the permission entity. | Yes |
Sample Request Body
Delete Users from Permission Entity by ID
This API removes a user already associated with a permission entity.| Field | Value |
|---|---|
| Method | DELETE |
| Endpoint | <host_url>/api/public/bot/:botId/connector/:connectorId/permission-entities/:entityId |
| Content-Type | application/json |
| Authorization | auth: <JWT Token> |
| API Scope | Permission Entity Management |
Query Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| Stream ID | Provide your application ID here. | Yes |
| Connector ID | Unique ID of the connector for which permission entities are to be updated. | Yes |
| Entity Id | Unique ID of the permission entity. | Yes |