All URIs are relative to https://api.pipedrive.com/v1
Method | HTTP request | Description |
---|---|---|
getPermissionSet | GET /permissionSets/{id} | Get one Permission Set |
getPermissionSetAssignments | GET /permissionSets/{id}/assignments | List Permission Set assignments |
getPermissionSets | GET /permissionSets | Get all Permission Sets |
SinglePermissionSetsItem getPermissionSet(id)
Get one Permission Set
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new Pipedrive.PermissionSetsApi();
let id = 56; // Number | ID of the permission set
apiInstance.getPermissionSet(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of the permission set |
- Content-Type: Not defined
- Accept: application/json
UserAssignmentsToPermissionSet getPermissionSetAssignments(id, opts)
List Permission Set assignments
The list of assignments for a Permission Set
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new Pipedrive.PermissionSetsApi();
let id = 56; // Number | ID of the permission set
let opts = {
'start': 0, // Number | Pagination start
'limit': 56 // Number | Items shown per page
};
apiInstance.getPermissionSetAssignments(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of the permission set | |
start | Number | Pagination start | [optional] [default to 0] |
limit | Number | Items shown per page | [optional] |
UserAssignmentsToPermissionSet
- Content-Type: Not defined
- Accept: application/json
PermissionSets getPermissionSets()
Get all Permission Sets
import Pipedrive from 'pipedrive';
let defaultClient = Pipedrive.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new Pipedrive.PermissionSetsApi();
apiInstance.getPermissionSets().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json