All URIs are relative to https://api.pipedrive.com/v1
Method | HTTP request | Description |
---|---|---|
addNote | POST /notes | Add a note |
addNoteComment | POST /notes/{id}/comments | Add a comment to a note |
deleteComment | DELETE /notes/{id}/comments/{commentId} | Delete a comment related to a note |
deleteNote | DELETE /notes/{id} | Delete a note |
getComment | GET /notes/{id}/comments/{commentId} | Get one comment |
getNote | GET /notes/{id} | Get one note |
getNoteComments | GET /notes/{id}/comments | Get all comments for a note |
getNotes | GET /notes | Get all notes |
updateCommentForNote | PUT /notes/{id}/comments/{commentId} | Update a comment related to a note |
updateNote | PUT /notes/{id} | Update a note |
PostNote addNote(opts)
Add a note
Adds a new note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let opts = Pipedrive.AddNoteRequest.constructFromObject({
// Properties that you want to update
});
apiInstance.addNote(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
AddNoteRequest | AddNoteRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
PostComment addNoteComment(id, opts)
Add a comment to a note
Adds a new comment to a note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
let opts = Pipedrive.CommentPostPutObject.constructFromObject({
// Properties that you want to update
});
apiInstance.addNoteComment(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
CommentPostPutObject | CommentPostPutObject | [optional] |
- Content-Type: application/json
- Accept: application/json
DeleteComment deleteComment(id, commentId)
Delete a comment related to a note
Deletes a comment.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
let commentId = "commentId_example"; // String | The ID of the comment
apiInstance.deleteComment(id, commentId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
commentId | String | The ID of the comment |
- Content-Type: Not defined
- Accept: application/json
DeleteNote deleteNote(id)
Delete a note
Deletes a specific note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
apiInstance.deleteNote(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note |
- Content-Type: Not defined
- Accept: application/json
PostComment getComment(id, commentId)
Get one comment
Returns the details of a comment.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
let commentId = "commentId_example"; // String | The ID of the comment
apiInstance.getComment(id, commentId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
commentId | String | The ID of the comment |
- Content-Type: Not defined
- Accept: application/json
PostNote getNote(id)
Get one note
Returns details about a specific note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
apiInstance.getNote(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note |
- Content-Type: Not defined
- Accept: application/json
GetComments getNoteComments(id, opts)
Get all comments for a note
Returns all comments associated with a note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
// snake_case as well as camelCase is supported for naming opts properties
let opts = {
'start': 0, // Number | Pagination start
'limit': 56 // Number | Items shown per page
};
apiInstance.getNoteComments(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
start | Number | Pagination start | [optional] [default to 0] |
limit | Number | Items shown per page | [optional] |
- Content-Type: Not defined
- Accept: application/json
GetNotes getNotes(opts)
Get all notes
Returns all notes.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
// snake_case as well as camelCase is supported for naming opts properties
let opts = {
'userId': 56, // Number | The ID of the user whose notes to fetch. If omitted, notes by all users will be returned.
'leadId': "leadId_example", // String | The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned.
'dealId': 56, // Number | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
'personId': 56, // Number | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
'orgId': 56, // Number | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
'start': 0, // Number | Pagination start
'limit': 56, // Number | Items shown per page
'sort': "sort_example", // String | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`.
'startDate': new Date("2013-10-20"), // Date | The date in format of YYYY-MM-DD from which notes to fetch
'endDate': new Date("2013-10-20"), // Date | The date in format of YYYY-MM-DD until which notes to fetch to
'pinnedToLeadFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to lead pinning state
'pinnedToDealFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to deal pinning state
'pinnedToOrganizationFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to organization pinning state
'pinnedToPersonFlag': new Pipedrive.NumberBoolean() // NumberBoolean | If set, the results are filtered by note to person pinning state
};
apiInstance.getNotes(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
user_id | Number | The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. | [optional] |
lead_id | String | The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. | [optional] |
deal_id | Number | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. | [optional] |
person_id | Number | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. | [optional] |
org_id | Number | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. | [optional] |
start | Number | Pagination start | [optional] [default to 0] |
limit | Number | Items shown per page | [optional] |
sort | String | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`. | [optional] |
start_date | Date | The date in format of YYYY-MM-DD from which notes to fetch | [optional] |
end_date | Date | The date in format of YYYY-MM-DD until which notes to fetch to | [optional] |
pinned_to_lead_flag | NumberBoolean | If set, the results are filtered by note to lead pinning state | [optional] |
pinned_to_deal_flag | NumberBoolean | If set, the results are filtered by note to deal pinning state | [optional] |
pinned_to_organization_flag | NumberBoolean | If set, the results are filtered by note to organization pinning state | [optional] |
pinned_to_person_flag | NumberBoolean | If set, the results are filtered by note to person pinning state | [optional] |
- Content-Type: Not defined
- Accept: application/json
PostComment updateCommentForNote(id, commentId, opts)
Update a comment related to a note
Updates a comment related to a note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
let commentId = "commentId_example"; // String | The ID of the comment
let opts = Pipedrive.CommentPostPutObject.constructFromObject({
// Properties that you want to update
});
apiInstance.updateCommentForNote(id, commentId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
commentId | String | The ID of the comment | |
CommentPostPutObject | CommentPostPutObject | [optional] |
- Content-Type: application/json
- Accept: application/json
PostNote updateNote(id, opts)
Update a note
Updates a note.
import Pipedrive from 'pipedrive';
let apiClient = new Pipedrive.ApiClient();
// Configure API key authorization: api_key
let api_key = apiClient.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';
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = apiClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Pipedrive.NotesApi(apiClient);
let id = 56; // Number | The ID of the note
let opts = Pipedrive.Note.constructFromObject({
// Properties that you want to update
});
apiInstance.updateNote(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The ID of the note | |
Note | Note | [optional] |
- Content-Type: application/json
- Accept: application/json