All URIs are relative to https://sync.api.docspring.com/api/v1
Method | HTTP request | Description |
---|---|---|
add_fields_to_template | PUT /templates/{template_id}/add_fields | Add new fields to a Template |
batch_generate_pdfs | POST /submissions/batches | Generates multiple PDFs |
combine_pdfs | POST /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files |
combine_submissions | POST /combined_submissions | Merge generated PDFs together |
copy_template | POST /templates/{template_id}/copy | Copy a Template |
create_custom_file_from_upload | POST /custom_files | Create a new custom file from a cached presign upload |
create_data_request_event | POST /data_requests/{data_request_id}/events | Creates a new event for emailing a signee a request for signature |
create_data_request_token | POST /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication |
create_folder | POST /folders/ | Create a folder |
create_html_template | POST /templates?endpoint_description=html | Create a new HTML template |
create_pdf_template | POST /templates | Create a new PDF template with a form POST file upload |
create_pdf_template_from_upload | POST /templates?endpoint_description=cached_upload | Create a new PDF template from a cached presign upload |
delete_folder | DELETE /folders/{folder_id} | Delete a folder |
delete_template | DELETE /templates/{template_id} | Delete a template |
expire_combined_submission | DELETE /combined_submissions/{combined_submission_id} | Expire a combined submission |
expire_submission | DELETE /submissions/{submission_id} | Expire a PDF submission |
generate_pdf | POST /templates/{template_id}/submissions | Generates a new PDF |
generate_pdf_for_html_template | POST /templates/{template_id}/submissions?endpoint_description=html_templates | Generates a new PDF for an HTML template |
generate_preview | POST /submissions/{submission_id}/generate_preview | Generated a preview PDF for partially completed data requests |
get_combined_submission | GET /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs) |
get_data_request | GET /data_requests/{data_request_id} | Look up a submission data request |
get_full_template | GET /templates/{template_id}?full=true | Fetch the full attributes for a PDF template |
get_presign_url | GET /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket |
get_submission | GET /submissions/{submission_id} | Check the status of a PDF |
get_submission_batch | GET /submissions/batches/{submission_batch_id} | Check the status of a submission batch job |
get_template | GET /templates/{template_id} | Check the status of an uploaded template |
get_template_schema | GET /templates/{template_id}/schema | Fetch the JSON schema for a template |
list_combined_submissions | GET /combined_submissions | Get a list of all combined submissions |
list_folders | GET /folders/ | Get a list of all folders |
list_submissions | GET /submissions | List all submissions |
list_template_submissions | GET /templates/{template_id}/submissions | List all submissions for a given template |
list_templates | GET /templates | Get a list of all templates |
move_folder_to_folder | POST /folders/{folder_id}/move | Move a folder |
move_template_to_folder | POST /templates/{template_id}/move | Move Template to folder |
publish_template_version | POST /templates/{template_id}/publish_version | Publish a template version |
rename_folder | POST /folders/{folder_id}/rename | Rename a folder |
restore_template_version | POST /templates/{template_id}/restore_version | Restore a template version |
test_authentication | GET /authentication | Test Authentication |
update_data_request | PUT /data_requests/{data_request_id} | Update a submission data request |
update_template | PUT /templates/{template_id} | Update a Template |
add_fields_to_template(template_id, data)
Add new fields to a Template
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_id = 'tpl_1234567890abcdef02' # String |
data = DocSpring::AddFieldsData.new({fields: [3.56]}) # AddFieldsData |
begin
# Add new fields to a Template
result = api_instance.add_fields_to_template(template_id, data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->add_fields_to_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> add_fields_to_template_with_http_info(template_id, data)
begin
# Add new fields to a Template
data, status_code, headers = api_instance.add_fields_to_template_with_http_info(template_id, data)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplateAddFieldsResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->add_fields_to_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_id | String | ||
data | AddFieldsData |
- Content-Type: application/json
- Accept: application/json
batch_generate_pdfs(data, opts)
Generates multiple PDFs
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::SubmissionBatchData.new({submissions: [3.56]}) # SubmissionBatchData |
opts = {
wait: true # Boolean | Wait for submission batch to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
}
begin
# Generates multiple PDFs
result = api_instance.batch_generate_pdfs(data, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->batch_generate_pdfs: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> batch_generate_pdfs_with_http_info(data, opts)
begin
# Generates multiple PDFs
data, status_code, headers = api_instance.batch_generate_pdfs_with_http_info(data, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <BatchGeneratePdfs201Response>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->batch_generate_pdfs_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | SubmissionBatchData | ||
wait | Boolean | 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
combine_pdfs(data)
Merge submission PDFs, template PDFs, or custom files
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CombinePdfsData.new({source_pdfs: [3.56]}) # CombinePdfsData |
begin
# Merge submission PDFs, template PDFs, or custom files
result = api_instance.combine_pdfs(data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->combine_pdfs: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> combine_pdfs_with_http_info(data)
begin
# Merge submission PDFs, template PDFs, or custom files
data, status_code, headers = api_instance.combine_pdfs_with_http_info(data)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateCombinedSubmissionResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->combine_pdfs_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CombinePdfsData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
combine_submissions(data, opts)
Merge generated PDFs together
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CombinedSubmissionData.new({submission_ids: ['submission_ids_example']}) # CombinedSubmissionData |
opts = {
wait: true # Boolean | Wait for combined submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
}
begin
# Merge generated PDFs together
result = api_instance.combine_submissions(data, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->combine_submissions: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> combine_submissions_with_http_info(data, opts)
begin
# Merge generated PDFs together
data, status_code, headers = api_instance.combine_submissions_with_http_info(data, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateCombinedSubmissionResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->combine_submissions_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CombinedSubmissionData | ||
wait | Boolean | 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
copy_template(template_id, opts)
Copy a Template
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_id = 'tpl_1234567890abcdef01' # String |
opts = {
options: DocSpring::CopyTemplateOptions.new({parent_folder_id: 'parent_folder_id_example'}) # CopyTemplateOptions |
}
begin
# Copy a Template
result = api_instance.copy_template(template_id, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->copy_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> copy_template_with_http_info(template_id, opts)
begin
# Copy a Template
data, status_code, headers = api_instance.copy_template_with_http_info(template_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplatePreview>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->copy_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_id | String | ||
options | CopyTemplateOptions | [optional] |
- Content-Type: application/json
- Accept: application/json
create_custom_file_from_upload(data)
Create a new custom file from a cached presign upload
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CreateCustomFileData.new({cache_id: 'cache_id_example'}) # CreateCustomFileData |
begin
# Create a new custom file from a cached presign upload
result = api_instance.create_custom_file_from_upload(data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_custom_file_from_upload: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_custom_file_from_upload_with_http_info(data)
begin
# Create a new custom file from a cached presign upload
data, status_code, headers = api_instance.create_custom_file_from_upload_with_http_info(data)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateCustomFileResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_custom_file_from_upload_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CreateCustomFileData |
- Content-Type: application/json
- Accept: application/json
create_data_request_event(data_request_id, event)
Creates a new event for emailing a signee a request for signature
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data_request_id = 'drq_1234567890abcdef01' # String |
event = DocSpring::CreateSubmissionDataRequestEventRequest.new({event_type: 'send_request'}) # CreateSubmissionDataRequestEventRequest |
begin
# Creates a new event for emailing a signee a request for signature
result = api_instance.create_data_request_event(data_request_id, event)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_data_request_event: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_data_request_event_with_http_info(data_request_id, event)
begin
# Creates a new event for emailing a signee a request for signature
data, status_code, headers = api_instance.create_data_request_event_with_http_info(data_request_id, event)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateSubmissionDataRequestEventResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_data_request_event_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data_request_id | String | ||
event | CreateSubmissionDataRequestEventRequest |
CreateSubmissionDataRequestEventResponse
- Content-Type: application/json
- Accept: application/json
create_data_request_token(data_request_id, opts)
Creates a new data request token for form authentication
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data_request_id = 'drq_1234567890abcdef01' # String |
opts = {
type: 'api' # String |
}
begin
# Creates a new data request token for form authentication
result = api_instance.create_data_request_token(data_request_id, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_data_request_token: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_data_request_token_with_http_info(data_request_id, opts)
begin
# Creates a new data request token for form authentication
data, status_code, headers = api_instance.create_data_request_token_with_http_info(data_request_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateSubmissionDataRequestTokenResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_data_request_token_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data_request_id | String | ||
type | String | [optional] |
CreateSubmissionDataRequestTokenResponse
- Content-Type: Not defined
- Accept: application/json
create_folder(data)
Create a folder
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CreateFolderData.new({folder: 3.56}) # CreateFolderData |
begin
# Create a folder
result = api_instance.create_folder(data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_folder: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_folder_with_http_info(data)
begin
# Create a folder
data, status_code, headers = api_instance.create_folder_with_http_info(data)
p status_code # => 2xx
p headers # => { ... }
p data # => <Folder>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_folder_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CreateFolderData |
- Content-Type: application/json
- Accept: application/json
create_html_template(data)
Create a new HTML template
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CreateHtmlTemplate.new({template: 3.56}) # CreateHtmlTemplate |
begin
# Create a new HTML template
result = api_instance.create_html_template(data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_html_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_html_template_with_http_info(data)
begin
# Create a new HTML template
data, status_code, headers = api_instance.create_html_template_with_http_info(data)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplatePreview>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_html_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CreateHtmlTemplate |
- Content-Type: application/json
- Accept: application/json
create_pdf_template(template_document, template_name, opts)
Create a new PDF template with a form POST file upload
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_document = File.new('/path/to/some/file') # File |
template_name = 'template_name_example' # String |
opts = {
wait: true, # Boolean | Wait for template document to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
template_description: 'template_description_example', # String |
template_parent_folder_id: 'template_parent_folder_id_example' # String |
}
begin
# Create a new PDF template with a form POST file upload
result = api_instance.create_pdf_template(template_document, template_name, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_pdf_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_pdf_template_with_http_info(template_document, template_name, opts)
begin
# Create a new PDF template with a form POST file upload
data, status_code, headers = api_instance.create_pdf_template_with_http_info(template_document, template_name, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplatePreview>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_pdf_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_document | File | ||
template_name | String | ||
wait | Boolean | Wait for template document to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain) | [optional][default to true] |
template_description | String | [optional] | |
template_parent_folder_id | String | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
create_pdf_template_from_upload(data)
Create a new PDF template from a cached presign upload
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data = DocSpring::CreatePdfTemplate.new({template: 3.56}) # CreatePdfTemplate |
begin
# Create a new PDF template from a cached presign upload
result = api_instance.create_pdf_template_from_upload(data)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_pdf_template_from_upload: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_pdf_template_from_upload_with_http_info(data)
begin
# Create a new PDF template from a cached presign upload
data, status_code, headers = api_instance.create_pdf_template_from_upload_with_http_info(data)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplatePreview>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->create_pdf_template_from_upload_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | CreatePdfTemplate |
- Content-Type: application/json
- Accept: application/json
delete_folder(folder_id)
Delete a folder
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
folder_id = 'fld_1234567890abcdef01' # String |
begin
# Delete a folder
result = api_instance.delete_folder(folder_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->delete_folder: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_folder_with_http_info(folder_id)
begin
# Delete a folder
data, status_code, headers = api_instance.delete_folder_with_http_info(folder_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <Folder>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->delete_folder_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
folder_id | String |
- Content-Type: Not defined
- Accept: application/json
delete_template(template_id, opts)
Delete a template
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_id = 'tpl_1234567890abcdef01' # String |
opts = {
version: '0.1.0' # String |
}
begin
# Delete a template
result = api_instance.delete_template(template_id, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->delete_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_template_with_http_info(template_id, opts)
begin
# Delete a template
data, status_code, headers = api_instance.delete_template_with_http_info(template_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TemplateDeleteResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->delete_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_id | String | ||
version | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
expire_combined_submission(combined_submission_id)
Expire a combined submission
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
combined_submission_id = 'com_1234567890abcdef01' # String |
begin
# Expire a combined submission
result = api_instance.expire_combined_submission(combined_submission_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->expire_combined_submission: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> expire_combined_submission_with_http_info(combined_submission_id)
begin
# Expire a combined submission
data, status_code, headers = api_instance.expire_combined_submission_with_http_info(combined_submission_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <CombinedSubmission>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->expire_combined_submission_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
combined_submission_id | String |
- Content-Type: Not defined
- Accept: application/json
expire_submission(submission_id)
Expire a PDF submission
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
submission_id = 'sub_1234567890abcdef01' # String |
begin
# Expire a PDF submission
result = api_instance.expire_submission(submission_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->expire_submission: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> expire_submission_with_http_info(submission_id)
begin
# Expire a PDF submission
data, status_code, headers = api_instance.expire_submission_with_http_info(submission_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SubmissionPreview>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->expire_submission_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
submission_id | String |
- Content-Type: Not defined
- Accept: application/json
generate_pdf(template_id, submission, opts)
Generates a new PDF
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_id = 'tpl_1234567890abcdef01' # String |
submission = DocSpring::CreatePdfSubmissionData.new({data: 3.56}) # CreatePdfSubmissionData |
opts = {
wait: true # Boolean | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
}
begin
# Generates a new PDF
result = api_instance.generate_pdf(template_id, submission, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_pdf: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> generate_pdf_with_http_info(template_id, submission, opts)
begin
# Generates a new PDF
data, status_code, headers = api_instance.generate_pdf_with_http_info(template_id, submission, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateSubmissionResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_pdf_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_id | String | ||
submission | CreatePdfSubmissionData | ||
wait | Boolean | 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
generate_pdf_for_html_template(template_id, submission, opts)
Generates a new PDF for an HTML template
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
template_id = 'tpl_HTML567890abcdef01' # String |
submission = DocSpring::CreateHtmlSubmissionData.new # CreateHtmlSubmissionData |
opts = {
wait: true # Boolean | Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
}
begin
# Generates a new PDF for an HTML template
result = api_instance.generate_pdf_for_html_template(template_id, submission, opts)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_pdf_for_html_template: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> generate_pdf_for_html_template_with_http_info(template_id, submission, opts)
begin
# Generates a new PDF for an HTML template
data, status_code, headers = api_instance.generate_pdf_for_html_template_with_http_info(template_id, submission, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateSubmissionResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_pdf_for_html_template_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
template_id | String | ||
submission | CreateHtmlSubmissionData | ||
wait | Boolean | 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
generate_preview(submission_id)
Generated a preview PDF for partially completed data requests
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
submission_id = 'sub_1234567890abcdef01' # String |
begin
# Generated a preview PDF for partially completed data requests
result = api_instance.generate_preview(submission_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_preview: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> generate_preview_with_http_info(submission_id)
begin
# Generated a preview PDF for partially completed data requests
data, status_code, headers = api_instance.generate_preview_with_http_info(submission_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SuccessErrorResponse>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->generate_preview_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
submission_id | String |
- Content-Type: Not defined
- Accept: application/json
get_combined_submission(combined_submission_id)
Check the status of a combined submission (merged PDFs)
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
combined_submission_id = 'com_1234567890abcdef01' # String |
begin
# Check the status of a combined submission (merged PDFs)
result = api_instance.get_combined_submission(combined_submission_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->get_combined_submission: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_combined_submission_with_http_info(combined_submission_id)
begin
# Check the status of a combined submission (merged PDFs)
data, status_code, headers = api_instance.get_combined_submission_with_http_info(combined_submission_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <CombinedSubmission>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->get_combined_submission_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
combined_submission_id | String |
- Content-Type: Not defined
- Accept: application/json
get_data_request(data_request_id)
Look up a submission data request
require 'time'
require 'docspring'
# setup authorization
DocSpring.configure do |config|
# Configure HTTP basic authorization: api_token_basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = DocSpring::PDFApi.new
data_request_id = 'drq_1234567890abcdef01' # String |
begin
# Look up a submission data request
result = api_instance.get_data_request(data_request_id)
p result
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->get_data_request: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_data_request_with_http_info(data_request_id)
begin
# Look up a submission data request
data, status_code, headers = api_instance.get_data_request_with_http_info(data_request_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SubmissionDataRequestShow>
rescue DocSpring::ApiError => e
puts "Error when calling PDFApi->get_data_request_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data_request_id | String |
- Content-Type: Not defined
- Accept: application/json
get_full_template(template_id)
Fetch the full attributes for a PDF template
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | begin # Fetch the full attributes for a PDF template result = api_instance.get_full_template(template_id) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_full_template: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_full_template_with_http_info(template_id)
begin # Fetch the full attributes for a PDF template data, status_code, headers = api_instance.get_full_template_with_http_info(template_id) p status_code # => 2xx p headers # => { ... } p data # => <Template> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_full_template_with_http_info: #{e}" end
Name Type Description Notes template_id String
- Content-Type: Not defined
- Accept: application/json
get_presign_url
Get a presigned URL so that you can upload a file to our AWS S3 bucket
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new begin # Get a presigned URL so that you can upload a file to our AWS S3 bucket result = api_instance.get_presign_url p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_presign_url: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_presign_url_with_http_info
begin # Get a presigned URL so that you can upload a file to our AWS S3 bucket data, status_code, headers = api_instance.get_presign_url_with_http_info p status_code # => 2xx p headers # => { ... } p data # => <UploadPresignResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_presign_url_with_http_info: #{e}" endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
get_submission(submission_id, opts)
Check the status of a PDF
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new submission_id = 'sub_1234567890abcdef01' # String | opts = { include_data: true # Boolean | } begin # Check the status of a PDF result = api_instance.get_submission(submission_id, opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_submission: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_submission_with_http_info(submission_id, opts)
begin # Check the status of a PDF data, status_code, headers = api_instance.get_submission_with_http_info(submission_id, opts) p status_code # => 2xx p headers # => { ... } p data # => <Submission> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_submission_with_http_info: #{e}" end
Name Type Description Notes submission_id String include_data Boolean [optional]
- Content-Type: Not defined
- Accept: application/json
get_submission_batch(submission_batch_id, opts)
Check the status of a submission batch job
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new submission_batch_id = 'sbb_1234567890abcdef01' # String | opts = { include_submissions: true # Boolean | } begin # Check the status of a submission batch job result = api_instance.get_submission_batch(submission_batch_id, opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_submission_batch: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_submission_batch_with_http_info(submission_batch_id, opts)
begin # Check the status of a submission batch job data, status_code, headers = api_instance.get_submission_batch_with_http_info(submission_batch_id, opts) p status_code # => 2xx p headers # => { ... } p data # => <SubmissionBatchWithSubmissions> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_submission_batch_with_http_info: #{e}" end
Name Type Description Notes submission_batch_id String include_submissions Boolean [optional] SubmissionBatchWithSubmissions
- Content-Type: Not defined
- Accept: application/json
get_template(template_id)
Check the status of an uploaded template
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | begin # Check the status of an uploaded template result = api_instance.get_template(template_id) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_template: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_template_with_http_info(template_id)
begin # Check the status of an uploaded template data, status_code, headers = api_instance.get_template_with_http_info(template_id) p status_code # => 2xx p headers # => { ... } p data # => <TemplatePreview> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_template_with_http_info: #{e}" end
Name Type Description Notes template_id String
- Content-Type: Not defined
- Accept: application/json
get_template_schema(template_id)
Fetch the JSON schema for a template
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | begin # Fetch the JSON schema for a template result = api_instance.get_template_schema(template_id) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_template_schema: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_template_schema_with_http_info(template_id)
begin # Fetch the JSON schema for a template data, status_code, headers = api_instance.get_template_schema_with_http_info(template_id) p status_code # => 2xx p headers # => { ... } p data # => <JsonSchema> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->get_template_schema_with_http_info: #{e}" end
Name Type Description Notes template_id String
- Content-Type: Not defined
- Accept: application/json
<Array> list_combined_submissions(opts)
Get a list of all combined submissions
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new opts = { page: 2, # Integer | Default: 1 per_page: 1 # Integer | Default: 50 } begin # Get a list of all combined submissions result = api_instance.list_combined_submissions(opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_combined_submissions: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> list_combined_submissions_with_http_info(opts)
begin # Get a list of all combined submissions data, status_code, headers = api_instance.list_combined_submissions_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => <Array<CombinedSubmission>> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_combined_submissions_with_http_info: #{e}" end
Name Type Description Notes page Integer Default: 1 [optional] per_page Integer Default: 50 [optional]
- Content-Type: Not defined
- Accept: application/json
<Array> list_folders(opts)
Get a list of all folders
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new opts = { parent_folder_id: 'fld_1234567890abcdef02' # String | Filter By Folder Id } begin # Get a list of all folders result = api_instance.list_folders(opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_folders: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> list_folders_with_http_info(opts)
begin # Get a list of all folders data, status_code, headers = api_instance.list_folders_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => <Array<Folder>> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_folders_with_http_info: #{e}" end
Name Type Description Notes parent_folder_id String Filter By Folder Id [optional]
- Content-Type: Not defined
- Accept: application/json
list_submissions(opts)
List all submissions
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new opts = { cursor: 'sub_1234567890abcdef12', # String | limit: 3, # Float | created_after: '2019-01-01T09:00:00-05:00', # String | created_before: '2020-01-01T09:00:00.000+0200', # String | type: 'test', # String | include_data: true # Boolean | } begin # List all submissions result = api_instance.list_submissions(opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_submissions: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_submissions_with_http_info(opts)
begin # List all submissions data, status_code, headers = api_instance.list_submissions_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => <ListSubmissionsResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_submissions_with_http_info: #{e}" end
Name Type Description Notes cursor String [optional] limit Float [optional] created_after String [optional] created_before String [optional] type String [optional] include_data Boolean [optional]
- Content-Type: Not defined
- Accept: application/json
list_template_submissions(template_id, opts)
List all submissions for a given template
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef02' # String | opts = { cursor: 'cursor_example', # String | limit: 8.14, # Float | created_after: 'created_after_example', # String | created_before: 'created_before_example', # String | type: 'type_example', # String | include_data: true # Boolean | } begin # List all submissions for a given template result = api_instance.list_template_submissions(template_id, opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_template_submissions: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_template_submissions_with_http_info(template_id, opts)
begin # List all submissions for a given template data, status_code, headers = api_instance.list_template_submissions_with_http_info(template_id, opts) p status_code # => 2xx p headers # => { ... } p data # => <ListSubmissionsResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_template_submissions_with_http_info: #{e}" end
Name Type Description Notes template_id String cursor String [optional] limit Float [optional] created_after String [optional] created_before String [optional] type String [optional] include_data Boolean [optional]
- Content-Type: Not defined
- Accept: application/json
<Array> list_templates(opts)
Get a list of all templates
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new opts = { query: '2', # String | Search By Name parent_folder_id: 'fld_1234567890abcdef01', # String | Filter By Folder Id page: 2, # Integer | Default: 1 per_page: 1 # Integer | Default: 50 } begin # Get a list of all templates result = api_instance.list_templates(opts) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_templates: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> list_templates_with_http_info(opts)
begin # Get a list of all templates data, status_code, headers = api_instance.list_templates_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => <Array<TemplatePreview>> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->list_templates_with_http_info: #{e}" end
Name Type Description Notes query String Search By Name [optional] parent_folder_id String Filter By Folder Id [optional] page Integer Default: 1 [optional] per_page Integer Default: 50 [optional]
- Content-Type: Not defined
- Accept: application/json
move_folder_to_folder(folder_id, data)
Move a folder
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new folder_id = 'fld_1234567890abcdef01' # String | data = DocSpring::MoveFolderData.new # MoveFolderData | begin # Move a folder result = api_instance.move_folder_to_folder(folder_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->move_folder_to_folder: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> move_folder_to_folder_with_http_info(folder_id, data)
begin # Move a folder data, status_code, headers = api_instance.move_folder_to_folder_with_http_info(folder_id, data) p status_code # => 2xx p headers # => { ... } p data # => <Folder> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->move_folder_to_folder_with_http_info: #{e}" end
Name Type Description Notes folder_id String data MoveFolderData
- Content-Type: application/json
- Accept: application/json
move_template_to_folder(template_id, data)
Move Template to folder
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | data = DocSpring::MoveTemplateData.new({parent_folder_id: 'parent_folder_id_example'}) # MoveTemplateData | begin # Move Template to folder result = api_instance.move_template_to_folder(template_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->move_template_to_folder: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> move_template_to_folder_with_http_info(template_id, data)
begin # Move Template to folder data, status_code, headers = api_instance.move_template_to_folder_with_http_info(template_id, data) p status_code # => 2xx p headers # => { ... } p data # => <TemplatePreview> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->move_template_to_folder_with_http_info: #{e}" end
Name Type Description Notes template_id String data MoveTemplateData
- Content-Type: application/json
- Accept: application/json
publish_template_version(template_id, data)
Publish a template version
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | data = DocSpring::PublishVersionData.new({version_type: 'version_type_example'}) # PublishVersionData | begin # Publish a template version result = api_instance.publish_template_version(template_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->publish_template_version: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> publish_template_version_with_http_info(template_id, data)
begin # Publish a template version data, status_code, headers = api_instance.publish_template_version_with_http_info(template_id, data) p status_code # => 2xx p headers # => { ... } p data # => <TemplatePublishVersionResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->publish_template_version_with_http_info: #{e}" end
Name Type Description Notes template_id String data PublishVersionData TemplatePublishVersionResponse
- Content-Type: application/json
- Accept: application/json
rename_folder(folder_id, data)
Rename a folder
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new folder_id = 'fld_1234567890abcdef01' # String | data = DocSpring::RenameFolderData.new({name: 'name_example'}) # RenameFolderData | begin # Rename a folder result = api_instance.rename_folder(folder_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->rename_folder: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> rename_folder_with_http_info(folder_id, data)
begin # Rename a folder data, status_code, headers = api_instance.rename_folder_with_http_info(folder_id, data) p status_code # => 2xx p headers # => { ... } p data # => <Folder> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->rename_folder_with_http_info: #{e}" end
Name Type Description Notes folder_id String data RenameFolderData
- Content-Type: application/json
- Accept: application/json
restore_template_version(template_id, data)
Restore a template version
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef01' # String | data = DocSpring::RestoreVersionData.new({version: 'version_example'}) # RestoreVersionData | begin # Restore a template version result = api_instance.restore_template_version(template_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->restore_template_version: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> restore_template_version_with_http_info(template_id, data)
begin # Restore a template version data, status_code, headers = api_instance.restore_template_version_with_http_info(template_id, data) p status_code # => 2xx p headers # => { ... } p data # => <SuccessErrorResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->restore_template_version_with_http_info: #{e}" end
Name Type Description Notes template_id String data RestoreVersionData
- Content-Type: application/json
- Accept: application/json
test_authentication
Test Authentication
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new begin # Test Authentication result = api_instance.test_authentication p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->test_authentication: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> test_authentication_with_http_info
begin # Test Authentication data, status_code, headers = api_instance.test_authentication_with_http_info p status_code # => 2xx p headers # => { ... } p data # => <SuccessErrorResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->test_authentication_with_http_info: #{e}" endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
update_data_request(data_request_id, data)
Update a submission data request
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new data_request_id = 'drq_1234567890abcdef01' # String | data = DocSpring::UpdateSubmissionDataRequestData.new # UpdateSubmissionDataRequestData | begin # Update a submission data request result = api_instance.update_data_request(data_request_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->update_data_request: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_data_request_with_http_info(data_request_id, data)
begin # Update a submission data request data, status_code, headers = api_instance.update_data_request_with_http_info(data_request_id, data) p status_code # => 2xx p headers # => { ... } p data # => <CreateSubmissionDataRequestResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->update_data_request_with_http_info: #{e}" end
Name Type Description Notes data_request_id String data UpdateSubmissionDataRequestData CreateSubmissionDataRequestResponse
- Content-Type: application/json
- Accept: application/json
update_template(template_id, data)
Update a Template
require 'time' require 'docspring' # setup authorization DocSpring.configure do |config| # Configure HTTP basic authorization: api_token_basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = DocSpring::PDFApi.new template_id = 'tpl_1234567890abcdef03' # String | data = DocSpring::UpdateHtmlTemplate.new({template: 3.56}) # UpdateHtmlTemplate | begin # Update a Template result = api_instance.update_template(template_id, data) p result rescue DocSpring::ApiError => e puts "Error when calling PDFApi->update_template: #{e}" endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_template_with_http_info(template_id, data)
begin # Update a Template data, status_code, headers = api_instance.update_template_with_http_info(template_id, data) p status_code # => 2xx p headers # => { ... } p data # => <SuccessMultipleErrorsResponse> rescue DocSpring::ApiError => e puts "Error when calling PDFApi->update_template_with_http_info: #{e}" end
Name Type Description Notes template_id String data UpdateHtmlTemplate
- Content-Type: application/json
- Accept: application/json