All URIs are relative to https://api.docspring.com/api/v1
Method | HTTP request | Description |
---|---|---|
AddFieldsToTemplate | PUT /templates/{template_id}/add_fields | Add new fields to a Template |
BatchGeneratePdfV1 | POST /templates/{template_id}/submissions/batch | Generates multiple PDFs |
BatchGeneratePdfs | POST /submissions/batches | Generates multiple PDFs |
CombinePdfs | POST /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files |
CombineSubmissions | POST /combined_submissions | Merge generated PDFs together |
CopyTemplate | POST /templates/{template_id}/copy | Copy a Template |
CreateCustomFileFromUpload | POST /custom_files | Create a new custom file from a cached presign upload |
CreateDataRequestEvent | POST /data_requests/{data_request_id}/events | Creates a new event for emailing a signee a request for signature |
CreateDataRequestToken | POST /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication |
CreateFolder | POST /folders/ | Create a folder |
CreateHTMLTemplate | POST /templates?desc=html | Create a new HTML template |
CreatePDFTemplate | POST /templates | Create a new PDF template with a form POST file upload |
CreatePDFTemplateFromUpload | POST /templates?desc=cached_upload | Create a new PDF template from a cached presign upload |
DeleteFolder | DELETE /folders/{folder_id} | Delete a folder |
DeleteTemplate | DELETE /templates/{template_id} | Delete a template |
ExpireCombinedSubmission | DELETE /combined_submissions/{combined_submission_id} | Expire a combined submission |
ExpireSubmission | DELETE /submissions/{submission_id} | Expire a PDF submission |
GeneratePDF | POST /templates/{template_id}/submissions | Generates a new PDF |
GeneratePreview | POST /submissions/{submission_id}/generate_preview | Generated a preview PDF for partially completed data requests |
GetCombinedSubmission | GET /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs) |
GetDataRequest | GET /data_requests/{data_request_id} | Look up a submission data request |
GetFullTemplate | GET /templates/{template_id}?full=true | Fetch the full template attributes |
GetPresignUrl | GET /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket |
GetSubmission | GET /submissions/{submission_id} | Check the status of a PDF |
GetSubmissionBatch | GET /submissions/batches/{submission_batch_id} | Check the status of a submission batch job |
GetTemplate | GET /templates/{template_id} | Check the status of an uploaded template |
GetTemplateSchema | GET /templates/{template_id}/schema | Fetch the JSON schema for a template |
ListCombinedSubmissions | GET /combined_submissions | Get a list of all combined submissions |
ListFolders | GET /folders/ | Get a list of all folders |
ListSubmissions | GET /submissions | List all submissions |
ListTemplateSubmissions | GET /templates/{template_id}/submissions | List all submissions for a given template |
ListTemplates | GET /templates | Get a list of all templates |
MoveFolderToFolder | POST /folders/{folder_id}/move | Move a folder |
MoveTemplateToFolder | POST /templates/{template_id}/move | Move Template to folder |
PublishTemplateVersion | POST /templates/{template_id}/publish_version | Publish a template version |
RenameFolder | POST /folders/{folder_id}/rename | Rename a folder |
RestoreTemplateVersion | POST /templates/{template_id}/restore_version | Restore a template version |
TestAuthentication | GET /authentication | Test Authentication |
UpdateDataRequest | PUT /data_requests/{data_request_id} | Update a submission data request |
UpdateTemplate | PUT /templates/{template_id} | Update a Template |
AddFieldsTemplateResponse AddFieldsToTemplate (string templateId, AddFieldsData data)
Add new fields to a Template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class AddFieldsToTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000002; // string |
var data = new AddFieldsData(); // AddFieldsData |
try
{
// Add new fields to a Template
AddFieldsTemplateResponse result = apiInstance.AddFieldsToTemplate(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.AddFieldsToTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Add new fields to a Template
ApiResponse<AddFieldsTemplateResponse> response = apiInstance.AddFieldsToTemplateWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.AddFieldsToTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | AddFieldsData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | add fields success | - |
422 | add fields error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CreateSubmissionResponse> BatchGeneratePdfV1 (string templateId, List data)
Generates multiple PDFs
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class BatchGeneratePdfV1Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var data = new List<SubmissionData>(); // List<SubmissionData> |
try
{
// Generates multiple PDFs
List<CreateSubmissionResponse> result = apiInstance.BatchGeneratePdfV1(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.BatchGeneratePdfV1: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Generates multiple PDFs
ApiResponse<List<CreateSubmissionResponse>> response = apiInstance.BatchGeneratePdfV1WithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.BatchGeneratePdfV1WithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | List<SubmissionData> |
List<CreateSubmissionResponse>
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submissions created | - |
422 | invalid requests | - |
401 | authentication failed | - |
400 | invalid JSON | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionBatchResponse BatchGeneratePdfs (SubmissionBatchData data)
Generates multiple PDFs
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class BatchGeneratePdfsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new SubmissionBatchData(); // SubmissionBatchData |
try
{
// Generates multiple PDFs
CreateSubmissionBatchResponse result = apiInstance.BatchGeneratePdfs(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.BatchGeneratePdfs: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Generates multiple PDFs
ApiResponse<CreateSubmissionBatchResponse> response = apiInstance.BatchGeneratePdfsWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.BatchGeneratePdfsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | SubmissionBatchData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submissions created | - |
200 | some PDFs with invalid data | - |
401 | authentication failed | - |
400 | invalid JSON | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCombinedSubmissionResponse CombinePdfs (CombinePdfsData data)
Merge submission PDFs, template PDFs, or custom files
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CombinePdfsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CombinePdfsData(); // CombinePdfsData |
try
{
// Merge submission PDFs, template PDFs, or custom files
CreateCombinedSubmissionResponse result = apiInstance.CombinePdfs(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CombinePdfs: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Merge submission PDFs, template PDFs, or custom files
ApiResponse<CreateCombinedSubmissionResponse> response = apiInstance.CombinePdfsWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CombinePdfsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CombinePdfsData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | combined submission created | - |
422 | invalid request | - |
400 | invalid JSON | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCombinedSubmissionResponse CombineSubmissions (CombinedSubmissionData data)
Merge generated PDFs together
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CombineSubmissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CombinedSubmissionData(); // CombinedSubmissionData |
try
{
// Merge generated PDFs together
CreateCombinedSubmissionResponse result = apiInstance.CombineSubmissions(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CombineSubmissions: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Merge generated PDFs together
ApiResponse<CreateCombinedSubmissionResponse> response = apiInstance.CombineSubmissionsWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CombineSubmissionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CombinedSubmissionData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | combined submission created | - |
422 | invalid request | - |
400 | invalid JSON | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template CopyTemplate (string templateId, CopyTemplateData data)
Copy a Template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CopyTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var data = new CopyTemplateData(); // CopyTemplateData |
try
{
// Copy a Template
Template result = apiInstance.CopyTemplate(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CopyTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Copy a Template
ApiResponse<Template> response = apiInstance.CopyTemplateWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CopyTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | CopyTemplateData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | copy template success | - |
404 | folder not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCustomFileResponse CreateCustomFileFromUpload (CreateCustomFileData data)
Create a new custom file from a cached presign upload
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreateCustomFileFromUploadExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CreateCustomFileData(); // CreateCustomFileData |
try
{
// Create a new custom file from a cached presign upload
CreateCustomFileResponse result = apiInstance.CreateCustomFileFromUpload(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateCustomFileFromUpload: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a new custom file from a cached presign upload
ApiResponse<CreateCustomFileResponse> response = apiInstance.CreateCustomFileFromUploadWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateCustomFileFromUploadWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CreateCustomFileData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | returns the custom file | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionDataRequestEventResponse CreateDataRequestEvent (string dataRequestId, CreateSubmissionDataRequestEventRequest varEvent)
Creates a new event for emailing a signee a request for signature
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreateDataRequestEventExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var dataRequestId = drq_000000000000000001; // string |
var varEvent = new CreateSubmissionDataRequestEventRequest(); // CreateSubmissionDataRequestEventRequest |
try
{
// Creates a new event for emailing a signee a request for signature
CreateSubmissionDataRequestEventResponse result = apiInstance.CreateDataRequestEvent(dataRequestId, varEvent);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateDataRequestEvent: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Creates a new event for emailing a signee a request for signature
ApiResponse<CreateSubmissionDataRequestEventResponse> response = apiInstance.CreateDataRequestEventWithHttpInfo(dataRequestId, varEvent);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateDataRequestEventWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | string | ||
varEvent | CreateSubmissionDataRequestEventRequest |
CreateSubmissionDataRequestEventResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | event created | - |
401 | authentication failed | - |
422 | message recipient must not be blank | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionDataRequestTokenResponse CreateDataRequestToken (string dataRequestId)
Creates a new data request token for form authentication
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreateDataRequestTokenExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var dataRequestId = drq_000000000000000001; // string |
try
{
// Creates a new data request token for form authentication
CreateSubmissionDataRequestTokenResponse result = apiInstance.CreateDataRequestToken(dataRequestId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateDataRequestToken: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Creates a new data request token for form authentication
ApiResponse<CreateSubmissionDataRequestTokenResponse> response = apiInstance.CreateDataRequestTokenWithHttpInfo(dataRequestId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateDataRequestTokenWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | string |
CreateSubmissionDataRequestTokenResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | token created | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder CreateFolder (CreateFolderData data)
Create a folder
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreateFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CreateFolderData(); // CreateFolderData |
try
{
// Create a folder
Folder result = apiInstance.CreateFolder(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateFolder: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a folder
ApiResponse<Folder> response = apiInstance.CreateFolderWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CreateFolderData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
422 | name already exist | - |
404 | parent folder doesnt exist | - |
200 | folder created inside another folder | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreateHTMLTemplate (CreateHtmlTemplateData data)
Create a new HTML template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreateHTMLTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CreateHtmlTemplateData(); // CreateHtmlTemplateData |
try
{
// Create a new HTML template
PendingTemplate result = apiInstance.CreateHTMLTemplate(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateHTMLTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a new HTML template
ApiResponse<PendingTemplate> response = apiInstance.CreateHTMLTemplateWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreateHTMLTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CreateHtmlTemplateData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | returns a created template | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreatePDFTemplate (System.IO.Stream templateDocument, string templateName, string templateParentFolderId = null)
Create a new PDF template with a form POST file upload
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreatePDFTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateDocument = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream |
var templateName = "templateName_example"; // string |
var templateParentFolderId = "templateParentFolderId_example"; // string | (optional)
try
{
// Create a new PDF template with a form POST file upload
PendingTemplate result = apiInstance.CreatePDFTemplate(templateDocument, templateName, templateParentFolderId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreatePDFTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a new PDF template with a form POST file upload
ApiResponse<PendingTemplate> response = apiInstance.CreatePDFTemplateWithHttpInfo(templateDocument, templateName, templateParentFolderId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreatePDFTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateDocument | System.IO.Stream****System.IO.Stream | ||
templateName | string | ||
templateParentFolderId | string | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | returns a pending template | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreatePDFTemplateFromUpload (CreateTemplateFromUploadData data)
Create a new PDF template from a cached presign upload
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class CreatePDFTemplateFromUploadExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var data = new CreateTemplateFromUploadData(); // CreateTemplateFromUploadData |
try
{
// Create a new PDF template from a cached presign upload
PendingTemplate result = apiInstance.CreatePDFTemplateFromUpload(data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreatePDFTemplateFromUpload: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a new PDF template from a cached presign upload
ApiResponse<PendingTemplate> response = apiInstance.CreatePDFTemplateFromUploadWithHttpInfo(data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.CreatePDFTemplateFromUploadWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
data | CreateTemplateFromUploadData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | returns a pending template | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder DeleteFolder (string folderId)
Delete a folder
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class DeleteFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var folderId = fld_0000000000000000001; // string |
try
{
// Delete a folder
Folder result = apiInstance.DeleteFolder(folderId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.DeleteFolder: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete a folder
ApiResponse<Folder> response = apiInstance.DeleteFolderWithHttpInfo(folderId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.DeleteFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
folderId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
404 | folder doesnt exist | - |
422 | folder has contents | - |
200 | folder is empty | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteTemplateResponse DeleteTemplate (string templateId, string version = null)
Delete a template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class DeleteTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var version = 0.1.0; // string | (optional)
try
{
// Delete a template
DeleteTemplateResponse result = apiInstance.DeleteTemplate(templateId, version);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.DeleteTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete a template
ApiResponse<DeleteTemplateResponse> response = apiInstance.DeleteTemplateWithHttpInfo(templateId, version);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.DeleteTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
version | string | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | template deleted | - |
404 | template not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CombinedSubmission ExpireCombinedSubmission (string combinedSubmissionId)
Expire a combined submission
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ExpireCombinedSubmissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var combinedSubmissionId = com_0000000000000000001; // string |
try
{
// Expire a combined submission
CombinedSubmission result = apiInstance.ExpireCombinedSubmission(combinedSubmissionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ExpireCombinedSubmission: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Expire a combined submission
ApiResponse<CombinedSubmission> response = apiInstance.ExpireCombinedSubmissionWithHttpInfo(combinedSubmissionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ExpireCombinedSubmissionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
combinedSubmissionId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | submission was expired | - |
404 | combined submission not found | - |
403 | test API token used | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Submission ExpireSubmission (string submissionId)
Expire a PDF submission
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ExpireSubmissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var submissionId = sub_000000000000000001; // string |
try
{
// Expire a PDF submission
Submission result = apiInstance.ExpireSubmission(submissionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ExpireSubmission: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Expire a PDF submission
ApiResponse<Submission> response = apiInstance.ExpireSubmissionWithHttpInfo(submissionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ExpireSubmissionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
submissionId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | submission was expired | - |
404 | submission not found | - |
401 | authentication failed | - |
403 | test API token used | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionResponse GeneratePDF (string templateId, CreateSubmissionData submission)
Generates a new PDF
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GeneratePDFExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var submission = new CreateSubmissionData(); // CreateSubmissionData |
try
{
// Generates a new PDF
CreateSubmissionResponse result = apiInstance.GeneratePDF(templateId, submission);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GeneratePDF: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Generates a new PDF
ApiResponse<CreateSubmissionResponse> response = apiInstance.GeneratePDFWithHttpInfo(templateId, submission);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GeneratePDFWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
submission | CreateSubmissionData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submission created | - |
400 | invalid JSON | - |
422 | invalid request | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PreviewPdfResponse GeneratePreview (string submissionId)
Generated a preview PDF for partially completed data requests
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GeneratePreviewExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var submissionId = sub_00000000000000001; // string |
try
{
// Generated a preview PDF for partially completed data requests
PreviewPdfResponse result = apiInstance.GeneratePreview(submissionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GeneratePreview: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Generated a preview PDF for partially completed data requests
ApiResponse<PreviewPdfResponse> response = apiInstance.GeneratePreviewWithHttpInfo(submissionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GeneratePreviewWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
submissionId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | preview was successfully requested | - |
404 | submission not found | - |
422 | error requesting preview | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CombinedSubmission GetCombinedSubmission (string combinedSubmissionId)
Check the status of a combined submission (merged PDFs)
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetCombinedSubmissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var combinedSubmissionId = com_0000000000000000001; // string |
try
{
// Check the status of a combined submission (merged PDFs)
CombinedSubmission result = apiInstance.GetCombinedSubmission(combinedSubmissionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetCombinedSubmission: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Check the status of a combined submission (merged PDFs)
ApiResponse<CombinedSubmission> response = apiInstance.GetCombinedSubmissionWithHttpInfo(combinedSubmissionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetCombinedSubmissionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
combinedSubmissionId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | processed combined submission found | - |
404 | combined submission not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmissionDataRequest GetDataRequest (string dataRequestId)
Look up a submission data request
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetDataRequestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var dataRequestId = drq_000000000000000001; // string |
try
{
// Look up a submission data request
SubmissionDataRequest result = apiInstance.GetDataRequest(dataRequestId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetDataRequest: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Look up a submission data request
ApiResponse<SubmissionDataRequest> response = apiInstance.GetDataRequestWithHttpInfo(dataRequestId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetDataRequestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | completed submission data request found | - |
404 | submission data request not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FullTemplate GetFullTemplate (string templateId)
Fetch the full template attributes
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetFullTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
try
{
// Fetch the full template attributes
FullTemplate result = apiInstance.GetFullTemplate(templateId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetFullTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Fetch the full template attributes
ApiResponse<FullTemplate> response = apiInstance.GetFullTemplateWithHttpInfo(templateId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetFullTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | template found | - |
404 | template not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UploadPresign GetPresignUrl ()
Get a presigned URL so that you can upload a file to our AWS S3 bucket
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetPresignUrlExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
try
{
// Get a presigned URL so that you can upload a file to our AWS S3 bucket
UploadPresign result = apiInstance.GetPresignUrl();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetPresignUrl: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get a presigned URL so that you can upload a file to our AWS S3 bucket
ApiResponse<UploadPresign> response = apiInstance.GetPresignUrlWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetPresignUrlWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | presign URL generated | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Submission GetSubmission (string submissionId, bool? includeData = null)
Check the status of a PDF
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetSubmissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var submissionId = sub_000000000000000001; // string |
var includeData = true; // bool? | (optional)
try
{
// Check the status of a PDF
Submission result = apiInstance.GetSubmission(submissionId, includeData);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetSubmission: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Check the status of a PDF
ApiResponse<Submission> response = apiInstance.GetSubmissionWithHttpInfo(submissionId, includeData);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetSubmissionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
submissionId | string | ||
includeData | bool? | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | processed submission found | - |
404 | submission not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmissionBatch GetSubmissionBatch (string submissionBatchId, bool? includeSubmissions = null)
Check the status of a submission batch job
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetSubmissionBatchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var submissionBatchId = sbb_000000000000000001; // string |
var includeSubmissions = true; // bool? | (optional)
try
{
// Check the status of a submission batch job
SubmissionBatch result = apiInstance.GetSubmissionBatch(submissionBatchId, includeSubmissions);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetSubmissionBatch: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Check the status of a submission batch job
ApiResponse<SubmissionBatch> response = apiInstance.GetSubmissionBatchWithHttpInfo(submissionBatchId, includeSubmissions);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetSubmissionBatchWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
submissionBatchId | string | ||
includeSubmissions | bool? | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | processed submission batch found | - |
404 | submission batch not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template GetTemplate (string templateId)
Check the status of an uploaded template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
try
{
// Check the status of an uploaded template
Template result = apiInstance.GetTemplate(templateId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Check the status of an uploaded template
ApiResponse<Template> response = apiInstance.GetTemplateWithHttpInfo(templateId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | template found | - |
404 | template not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateSchema GetTemplateSchema (string templateId)
Fetch the JSON schema for a template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class GetTemplateSchemaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
try
{
// Fetch the JSON schema for a template
TemplateSchema result = apiInstance.GetTemplateSchema(templateId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetTemplateSchema: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Fetch the JSON schema for a template
ApiResponse<TemplateSchema> response = apiInstance.GetTemplateSchemaWithHttpInfo(templateId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GetTemplateSchemaWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | template found | - |
404 | template not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CombinedSubmission> ListCombinedSubmissions (int? page = null, int? perPage = null)
Get a list of all combined submissions
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ListCombinedSubmissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var page = 2; // int? | Default: 1 (optional)
var perPage = 1; // int? | Default: 50 (optional)
try
{
// Get a list of all combined submissions
List<CombinedSubmission> result = apiInstance.ListCombinedSubmissions(page, perPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListCombinedSubmissions: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get a list of all combined submissions
ApiResponse<List<CombinedSubmission>> response = apiInstance.ListCombinedSubmissionsWithHttpInfo(page, perPage);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListCombinedSubmissionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
page | int? | Default: 1 | [optional] |
perPage | int? | Default: 50 | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | enumerate all combined submissions | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Folder> ListFolders (string parentFolderId = null)
Get a list of all folders
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ListFoldersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var parentFolderId = fld_0000000000000000002; // string | Filter By Folder Id (optional)
try
{
// Get a list of all folders
List<Folder> result = apiInstance.ListFolders(parentFolderId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListFolders: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get a list of all folders
ApiResponse<List<Folder>> response = apiInstance.ListFoldersWithHttpInfo(parentFolderId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListFoldersWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
parentFolderId | string | Filter By Folder Id | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | enumerate all folders | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSubmissionsResponse ListSubmissions (string cursor = null, decimal? limit = null, string createdAfter = null, string createdBefore = null, string type = null, bool? includeData = null)
List all submissions
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ListSubmissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var cursor = sub_list_000012; // string | (optional)
var limit = 3; // decimal? | (optional)
var createdAfter = 2019-01-01T09:00:00-05:00; // string | (optional)
var createdBefore = 2020-01-01T09:00:00.000+0200; // string | (optional)
var type = test; // string | (optional)
var includeData = true; // bool? | (optional)
try
{
// List all submissions
ListSubmissionsResponse result = apiInstance.ListSubmissions(cursor, limit, createdAfter, createdBefore, type, includeData);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListSubmissions: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List all submissions
ApiResponse<ListSubmissionsResponse> response = apiInstance.ListSubmissionsWithHttpInfo(cursor, limit, createdAfter, createdBefore, type, includeData);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListSubmissionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
cursor | string | [optional] | |
limit | decimal? | [optional] | |
createdAfter | string | [optional] | |
createdBefore | string | [optional] | |
type | string | [optional] | |
includeData | bool? | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | listing submissions | - |
400 | invalid type | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSubmissionsResponse ListTemplateSubmissions (string templateId, string cursor = null, decimal? limit = null, string createdAfter = null, string createdBefore = null, string type = null, bool? includeData = null)
List all submissions for a given template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ListTemplateSubmissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000002; // string |
var cursor = "cursor_example"; // string | (optional)
var limit = 8.14D; // decimal? | (optional)
var createdAfter = "createdAfter_example"; // string | (optional)
var createdBefore = "createdBefore_example"; // string | (optional)
var type = "type_example"; // string | (optional)
var includeData = true; // bool? | (optional)
try
{
// List all submissions for a given template
ListSubmissionsResponse result = apiInstance.ListTemplateSubmissions(templateId, cursor, limit, createdAfter, createdBefore, type, includeData);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListTemplateSubmissions: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List all submissions for a given template
ApiResponse<ListSubmissionsResponse> response = apiInstance.ListTemplateSubmissionsWithHttpInfo(templateId, cursor, limit, createdAfter, createdBefore, type, includeData);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListTemplateSubmissionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
cursor | string | [optional] | |
limit | decimal? | [optional] | |
createdAfter | string | [optional] | |
createdBefore | string | [optional] | |
type | string | [optional] | |
includeData | bool? | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | listing submissions | - |
404 | invalid template id | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Template> ListTemplates (string query = null, string parentFolderId = null, int? page = null, int? perPage = null)
Get a list of all templates
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class ListTemplatesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var query = 2; // string | Search By Name (optional)
var parentFolderId = fld_000000000000000001; // string | Filter By Folder Id (optional)
var page = 2; // int? | Default: 1 (optional)
var perPage = 1; // int? | Default: 50 (optional)
try
{
// Get a list of all templates
List<Template> result = apiInstance.ListTemplates(query, parentFolderId, page, perPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListTemplates: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get a list of all templates
ApiResponse<List<Template>> response = apiInstance.ListTemplatesWithHttpInfo(query, parentFolderId, page, perPage);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.ListTemplatesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
query | string | Search By Name | [optional] |
parentFolderId | string | Filter By Folder Id | [optional] |
page | int? | Default: 1 | [optional] |
perPage | int? | Default: 50 | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | enumerate all templates | - |
404 | filter templates by invalid folder id | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder MoveFolderToFolder (string folderId, MoveFolderData data)
Move a folder
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class MoveFolderToFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var folderId = fld_0000000000000000001; // string |
var data = new MoveFolderData(); // MoveFolderData |
try
{
// Move a folder
Folder result = apiInstance.MoveFolderToFolder(folderId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.MoveFolderToFolder: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Move a folder
ApiResponse<Folder> response = apiInstance.MoveFolderToFolderWithHttpInfo(folderId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.MoveFolderToFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
folderId | string | ||
data | MoveFolderData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
404 | parent folder doesnt exist | - |
200 | move to root folder | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template MoveTemplateToFolder (string templateId, MoveTemplateData data)
Move Template to folder
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class MoveTemplateToFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var data = new MoveTemplateData(); // MoveTemplateData |
try
{
// Move Template to folder
Template result = apiInstance.MoveTemplateToFolder(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.MoveTemplateToFolder: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Move Template to folder
ApiResponse<Template> response = apiInstance.MoveTemplateToFolderWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.MoveTemplateToFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | MoveTemplateData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | move template success | - |
404 | folder not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PublishTemplateVersionResponse PublishTemplateVersion (string templateId, PublishVersionData data)
Publish a template version
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class PublishTemplateVersionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var data = new PublishVersionData(); // PublishVersionData |
try
{
// Publish a template version
PublishTemplateVersionResponse result = apiInstance.PublishTemplateVersion(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.PublishTemplateVersion: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Publish a template version
ApiResponse<PublishTemplateVersionResponse> response = apiInstance.PublishTemplateVersionWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.PublishTemplateVersionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | PublishVersionData |
PublishTemplateVersionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | version published successfully | - |
422 | invalid version type | - |
404 | template not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RenameFolder (string folderId, RenameFolderData data)
Rename a folder
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class RenameFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var folderId = fld_0000000000000000001; // string |
var data = new RenameFolderData(); // RenameFolderData |
try
{
// Rename a folder
apiInstance.RenameFolder(folderId, data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.RenameFolder: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Rename a folder
apiInstance.RenameFolderWithHttpInfo(folderId, data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.RenameFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
folderId | string | ||
data | RenameFolderData |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
422 | name already exist | - |
404 | folder doesnt belong to me | - |
200 | successful rename | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestoreTemplateVersionResponse RestoreTemplateVersion (string templateId, RestoreVersionData data)
Restore a template version
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class RestoreTemplateVersionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000001; // string |
var data = new RestoreVersionData(); // RestoreVersionData |
try
{
// Restore a template version
RestoreTemplateVersionResponse result = apiInstance.RestoreTemplateVersion(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.RestoreTemplateVersion: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Restore a template version
ApiResponse<RestoreTemplateVersionResponse> response = apiInstance.RestoreTemplateVersionWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.RestoreTemplateVersionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | RestoreVersionData |
RestoreTemplateVersionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | version restored successfully | - |
422 | draft version not allowed | - |
404 | template version not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthenticationSuccessResponse TestAuthentication ()
Test Authentication
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class TestAuthenticationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
try
{
// Test Authentication
AuthenticationSuccessResponse result = apiInstance.TestAuthentication();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.TestAuthentication: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Test Authentication
ApiResponse<AuthenticationSuccessResponse> response = apiInstance.TestAuthenticationWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.TestAuthenticationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | authentication succeeded | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateDataRequestResponse UpdateDataRequest (string dataRequestId, UpdateSubmissionDataRequestData data)
Update a submission data request
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class UpdateDataRequestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var dataRequestId = drq_000000000000000001; // string |
var data = new UpdateSubmissionDataRequestData(); // UpdateSubmissionDataRequestData |
try
{
// Update a submission data request
UpdateDataRequestResponse result = apiInstance.UpdateDataRequest(dataRequestId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.UpdateDataRequest: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Update a submission data request
ApiResponse<UpdateDataRequestResponse> response = apiInstance.UpdateDataRequestWithHttpInfo(dataRequestId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.UpdateDataRequestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | string | ||
data | UpdateSubmissionDataRequestData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | submission data request updated | - |
422 | invalid request | - |
404 | submission data request not found | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateTemplateResponse UpdateTemplate (string templateId, UpdateTemplateData data)
Update a Template
using System.Collections.Generic;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;
namespace Example
{
public class UpdateTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.docspring.com/api/v1";
// Configure HTTP basic authorization: api_token_basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PDFApi(config);
var templateId = tpl_000000000000000003; // string |
var data = new UpdateTemplateData(); // UpdateTemplateData |
try
{
// Update a Template
UpdateTemplateResponse result = apiInstance.UpdateTemplate(templateId, data);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.UpdateTemplate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Update a Template
ApiResponse<UpdateTemplateResponse> response = apiInstance.UpdateTemplateWithHttpInfo(templateId, data);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.UpdateTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
data | UpdateTemplateData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | update template success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]