All URIs are relative to https://api.pandadoc.com
Method | HTTP request | Description |
---|---|---|
createDocumentFolder | POST /public/v1/documents/folders | Create Documents Folder |
createTemplateFolder | POST /public/v1/templates/folders | Create Templates Folder |
listDocumentFolders | GET /public/v1/documents/folders | List Documents Folders |
listTemplateFolders | GET /public/v1/templates/folders | List Templates Folders |
renameDocumentFolder | PUT /public/v1/documents/folders/{id} | Rename Documents Folder |
renameTemplateFolder | PUT /public/v1/templates/folders/{id} | Rename Templates Folder |
DocumentsFolderCreateResponse createDocumentFolder(documentsFolderCreateRequest)
Create a new folder to store your documents.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiCreateDocumentFolderRequest = {
// DocumentsFolderCreateRequest
documentsFolderCreateRequest: {
name: "A new document folder",
parentUuid: "Nq8htXxFssmhRxAPSP4SBP",
},
};
apiInstance.createDocumentFolder(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
documentsFolderCreateRequest | DocumentsFolderCreateRequest |
DocumentsFolderCreateResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - | |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
TemplatesFolderCreateResponse createTemplateFolder(templatesFolderCreateRequest)
Create a new folder to store your templates.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiCreateTemplateFolderRequest = {
// TemplatesFolderCreateRequest
templatesFolderCreateRequest: {
name: "A new template folder",
parentUuid: "Nq8htXxFssmhRxAPSP4SBP",
},
};
apiInstance.createTemplateFolder(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
templatesFolderCreateRequest | TemplatesFolderCreateRequest |
TemplatesFolderCreateResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
DocumentsFolderListResponse listDocumentFolders()
Get the list of folders that contain Documents in your account.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiListDocumentFoldersRequest = {
// string | The UUID of the folder containing folders. To list the folders located in the root folder, remove this parameter in the request. (optional)
parentUuid: "Nq8htXxFssmhRxAPSP4SBP",
// number | Optionally, specify how many folders to return. Default is 50 folders, maximum is 100 folders. (optional)
count: 10,
// number | Optionally, specify which page of the dataset to return. (optional)
page: 1,
};
apiInstance.listDocumentFolders(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
parentUuid | [string] | The UUID of the folder containing folders. To list the folders located in the root folder, remove this parameter in the request. | (optional) defaults to undefined |
count | [number] | Optionally, specify how many folders to return. Default is 50 folders, maximum is 100 folders. | (optional) defaults to undefined |
page | [number] | Optionally, specify which page of the dataset to return. | (optional) defaults to undefined |
DocumentsFolderListResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
TemplatesFolderListResponse listTemplateFolders()
Get the list of folders that contain Templates in your account.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiListTemplateFoldersRequest = {
// string | The UUID of the folder containing folders. To list the folders located in the root folder, remove this parameter in the request. (optional)
parentUuid: "Nq8htXxFssmhRxAPSP4SBP",
// number | Optionally, specify how many folders to return. Default is 50 folders, maximum is 100 folders. (optional)
count: 10,
// number | Optionally, specify which page of the dataset to return. (optional)
page: 1,
};
apiInstance.listTemplateFolders(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
parentUuid | [string] | The UUID of the folder containing folders. To list the folders located in the root folder, remove this parameter in the request. | (optional) defaults to undefined |
count | [number] | Optionally, specify how many folders to return. Default is 50 folders, maximum is 100 folders. | (optional) defaults to undefined |
page | [number] | Optionally, specify which page of the dataset to return. | (optional) defaults to undefined |
TemplatesFolderListResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
DocumentsFolderRenameResponse renameDocumentFolder(documentsFolderRenameRequest)
Rename Documents Folder.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiRenameDocumentFolderRequest = {
// string | The UUID of the folder that you are renaming.
id: "Nq8htXxFssmhRxAPSP4SBP",
// DocumentsFolderRenameRequest
documentsFolderRenameRequest: {
name: "Another document folder",
},
};
apiInstance.renameDocumentFolder(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
documentsFolderRenameRequest | DocumentsFolderRenameRequest | ||
id | [string] | The UUID of the folder that you are renaming. | defaults to undefined |
DocumentsFolderRenameResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
404 | Not found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
TemplatesFolderRenameResponse renameTemplateFolder(templatesFolderRenameRequest)
Rename a templates folder.
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.FoldersAPIApi(configuration);
const body:pd_api.FoldersAPIApiRenameTemplateFolderRequest = {
// string | The UUID of the folder which you are renaming.
id: "Nq8htXxFssmhRxAPSP4SBP",
// TemplatesFolderRenameRequest
templatesFolderRenameRequest: {
name: "Another template folder",
},
};
apiInstance.renameTemplateFolder(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
templatesFolderRenameRequest | TemplatesFolderRenameRequest | ||
id | [string] | The UUID of the folder which you are renaming. | defaults to undefined |
TemplatesFolderRenameResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
404 | Not found | - |
429 | Too Many Requests | - |