All URIs are relative to https://sync.api.docspring.com/api/v1
Method | HTTP request | Description |
---|---|---|
AddFieldsToTemplate | PUT /templates/{template_id}/add_fields | Add new fields to a Template |
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?endpoint_description=html | Create a new HTML template |
CreatePDFTemplate | POST /templates | Create a new PDF template with a form POST file upload |
CreatePDFTemplateFromUpload | POST /templates?endpoint_description=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 |
GeneratePdfForHtmlTemplate | POST /templates/{template_id}/submissions?endpoint_description=html_templates | Generates a new PDF for an HTML template |
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 |
RenameFolder | POST /folders/{folder_id}/rename | Rename a folder |
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 |
TemplateAddFieldsResponse 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://sync.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_1234567890abcdef02; // string |
var data = new AddFieldsData(); // AddFieldsData |
try
{
// Add new fields to a Template
TemplateAddFieldsResponse 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<TemplateAddFieldsResponse> 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]
BatchGeneratePdfs201Response BatchGeneratePdfs (SubmissionBatchData data, bool? wait = null)
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://sync.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 |
var wait = true; // bool? | Wait for submission batch to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) (optional) (default to true)
try
{
// Generates multiple PDFs
BatchGeneratePdfs201Response result = apiInstance.BatchGeneratePdfs(data, wait);
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<BatchGeneratePdfs201Response> response = apiInstance.BatchGeneratePdfsWithHttpInfo(data, wait);
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 | ||
wait | bool? | Wait for submission batch to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional] [default to true] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submissions created | - |
200 | some PDFs with invalid data | - |
401 | authentication failed | - |
422 | array of arrays | - |
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://sync.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, bool? wait = null)
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://sync.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 |
var wait = true; // bool? | Wait for combined submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) (optional) (default to true)
try
{
// Merge generated PDFs together
CreateCombinedSubmissionResponse result = apiInstance.CombineSubmissions(data, wait);
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, wait);
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 | ||
wait | bool? | Wait for combined submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional] [default to true] |
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]
TemplatePreview CopyTemplate (string templateId, CopyTemplateOptions options = null)
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://sync.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_1234567890abcdef01; // string |
var options = new CopyTemplateOptions(); // CopyTemplateOptions | (optional)
try
{
// Copy a Template
TemplatePreview result = apiInstance.CopyTemplate(templateId, options);
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<TemplatePreview> response = apiInstance.CopyTemplateWithHttpInfo(templateId, options);
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 | ||
options | CopyTemplateOptions | [optional] |
- 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://sync.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://sync.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_1234567890abcdef01; // 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, string type = null)
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://sync.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_1234567890abcdef01; // string |
var type = api; // string | (optional)
try
{
// Creates a new data request token for form authentication
CreateSubmissionDataRequestTokenResponse result = apiInstance.CreateDataRequestToken(dataRequestId, type);
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, type);
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 | ||
type | string | [optional] |
CreateSubmissionDataRequestTokenResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | token created | - |
401 | authentication failed | - |
422 | invalid request | - |
[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://sync.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 doesn't exist | - |
200 | folder created inside another folder | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplatePreview CreateHTMLTemplate (CreateHtmlTemplate 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://sync.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 CreateHtmlTemplate(); // CreateHtmlTemplate |
try
{
// Create a new HTML template
TemplatePreview 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<TemplatePreview> 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 | CreateHtmlTemplate |
- 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]
TemplatePreview CreatePDFTemplate (System.IO.Stream templateDocument, string templateName, bool? wait = null, string templateDescription = null, 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://sync.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 wait = true; // bool? | Wait for template document to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) (optional) (default to true)
var templateDescription = "templateDescription_example"; // string | (optional)
var templateParentFolderId = "templateParentFolderId_example"; // string | (optional)
try
{
// Create a new PDF template with a form POST file upload
TemplatePreview result = apiInstance.CreatePDFTemplate(templateDocument, templateName, wait, templateDescription, 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<TemplatePreview> response = apiInstance.CreatePDFTemplateWithHttpInfo(templateDocument, templateName, wait, templateDescription, 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 | ||
wait | bool? | Wait for template document to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional] [default to true] |
templateDescription | string | [optional] | |
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]
TemplatePreview CreatePDFTemplateFromUpload (CreatePdfTemplate 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://sync.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 CreatePdfTemplate(); // CreatePdfTemplate |
try
{
// Create a new PDF template from a cached presign upload
TemplatePreview 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<TemplatePreview> 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 | CreatePdfTemplate |
- 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://sync.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_1234567890abcdef01; // 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 doesn't 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]
SuccessMultipleErrorsResponse DeleteTemplate (string templateId)
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://sync.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_1234567890abcdef01; // string |
try
{
// Delete a template
SuccessMultipleErrorsResponse result = apiInstance.DeleteTemplate(templateId);
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<SuccessMultipleErrorsResponse> response = apiInstance.DeleteTemplateWithHttpInfo(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.DeleteTemplateWithHttpInfo: " + 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 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://sync.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_1234567890abcdef01; // 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]
SubmissionPreview 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://sync.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_1234567890abcdef01; // string |
try
{
// Expire a PDF submission
SubmissionPreview 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<SubmissionPreview> 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, CreatePdfSubmissionData submission, bool? wait = null)
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://sync.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_1234567890abcdef01; // string |
var submission = new CreatePdfSubmissionData(); // CreatePdfSubmissionData |
var wait = true; // bool? | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) (optional) (default to true)
try
{
// Generates a new PDF
CreateSubmissionResponse result = apiInstance.GeneratePdf(templateId, submission, wait);
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, wait);
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 | CreatePdfSubmissionData | ||
wait | bool? | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional] [default to true] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submission created | - |
422 | invalid request | - |
401 | authentication failed | - |
400 | invalid JSON | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionResponse GeneratePdfForHtmlTemplate (string templateId, CreateHtmlSubmissionData submission, bool? wait = null)
Generates a new PDF for an 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 GeneratePdfForHtmlTemplateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://sync.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_HTML567890abcdef01; // string |
var submission = new CreateHtmlSubmissionData(); // CreateHtmlSubmissionData |
var wait = true; // bool? | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) (optional) (default to true)
try
{
// Generates a new PDF for an HTML template
CreateSubmissionResponse result = apiInstance.GeneratePdfForHtmlTemplate(templateId, submission, wait);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PDFApi.GeneratePdfForHtmlTemplate: " + 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 for an HTML template
ApiResponse<CreateSubmissionResponse> response = apiInstance.GeneratePdfForHtmlTemplateWithHttpInfo(templateId, submission, wait);
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.GeneratePdfForHtmlTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | string | ||
submission | CreateHtmlSubmissionData | ||
wait | bool? | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional] [default to true] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | submission created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessErrorResponse 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://sync.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_1234567890abcdef01; // string |
try
{
// Generated a preview PDF for partially completed data requests
SuccessErrorResponse 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<SuccessErrorResponse> 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://sync.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_1234567890abcdef01; // 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]
SubmissionDataRequestShow 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://sync.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_1234567890abcdef01; // string |
try
{
// Look up a submission data request
SubmissionDataRequestShow 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<SubmissionDataRequestShow> 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]
Template 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://sync.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_1234567890abcdef01; // string |
try
{
// Fetch the full template attributes
Template 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<Template> 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]
UploadPresignResponse 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://sync.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
UploadPresignResponse 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<UploadPresignResponse> 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://sync.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_1234567890abcdef01; // 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]
SubmissionBatchWithSubmissions 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://sync.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_1234567890abcdef01; // string |
var includeSubmissions = true; // bool? | (optional)
try
{
// Check the status of a submission batch job
SubmissionBatchWithSubmissions 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<SubmissionBatchWithSubmissions> 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] |
SubmissionBatchWithSubmissions
- 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]
TemplatePreview 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://sync.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_1234567890abcdef01; // string |
try
{
// Check the status of an uploaded template
TemplatePreview 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<TemplatePreview> 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]
JsonSchema 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://sync.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_1234567890abcdef01; // string |
try
{
// Fetch the JSON schema for a template
JsonSchema 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<JsonSchema> 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://sync.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://sync.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_1234567890abcdef02; // 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://sync.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_1234567890abcdef12; // 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 | - |
422 | 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://sync.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_1234567890abcdef02; // 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<TemplatePreview> 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://sync.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_1234567890abcdef01; // 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<TemplatePreview> 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<TemplatePreview>> 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://sync.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_1234567890abcdef01; // 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 doesn't exist | - |
200 | move to root folder | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplatePreview 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://sync.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_1234567890abcdef01; // string |
var data = new MoveTemplateData(); // MoveTemplateData |
try
{
// Move Template to folder
TemplatePreview 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<TemplatePreview> 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]
Folder 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://sync.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_1234567890abcdef01; // string |
var data = new RenameFolderData(); // RenameFolderData |
try
{
// Rename a folder
Folder result = apiInstance.RenameFolder(folderId, data);
Debug.WriteLine(result);
}
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
ApiResponse<Folder> response = apiInstance.RenameFolderWithHttpInfo(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.RenameFolderWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
folderId | string | ||
data | RenameFolderData |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
422 | name already exist | - |
404 | folder doesn't belong to me | - |
200 | successful rename | - |
401 | authentication failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SuccessErrorResponse 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://sync.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
SuccessErrorResponse 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<SuccessErrorResponse> 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]
CreateSubmissionDataRequestResponse 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://sync.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_1234567890abcdef01; // string |
var data = new UpdateSubmissionDataRequestData(); // UpdateSubmissionDataRequestData |
try
{
// Update a submission data request
CreateSubmissionDataRequestResponse 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<CreateSubmissionDataRequestResponse> 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 |
CreateSubmissionDataRequestResponse
- 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]
SuccessMultipleErrorsResponse UpdateTemplate (string templateId, UpdateHtmlTemplate 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://sync.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_1234567890abcdef03; // string |
var data = new UpdateHtmlTemplate(); // UpdateHtmlTemplate |
try
{
// Update a Template
SuccessMultipleErrorsResponse 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<SuccessMultipleErrorsResponse> 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 | UpdateHtmlTemplate |
- 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]