You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 11a118f
Browse filesBrowse the repository at this point in the historyBrowse files
- **BREAKING CHANGE**: Each operation's parameters struct (`docspring::CreateSubmissionParams`) is `#[non_exhaustive]`,
so it can only be built with its builder (`CreateSubmissionParams::builder()`), not a struct literal. A new optional
parameter no longer breaks your code.
- Changed: the request validator refuses a `filename` that's blank or only whitespace (create_template,
update_template_document), and an empty `field_groups` list in update_template.
- New: a 409 `idempotency_key_in_use` error names what the first request with the key did: the email action
(`email_action_id`) or email domain (`email_domain_id`) it created, or the template whose fields it changed or whose
version it published (`template_id`).
- New: `Template` has `form_sections`, the web form's sections in order (`TemplateFormSection`: an `id`, a `title`, a
`description` and the `field_ids` in it), which update_template takes too. Setting them replaces all of the sections.
- New: `Template` has `success_title`, `success_message` and `show_fill_again_button`, what the web form shows once
it's submitted, which create_template and update_template take too.
- New: create_template and upload_template take `include_office_use_fields`: with `detect_fields`, whether AI field
setup keeps the fields that only the office receiving the form fills in, such as a "For office use only" box. It
leaves them out by default (your account's template settings).
Copy file name to clipboardExpand all lines: Cargo.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[package]
2
2
name = "docspring"
3
-
version = "4.5.0"
3
+
version = "4.6.0"
4
4
authors = ["DocSpring <support@docspring.com>"]
5
5
description = "Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures."
**test** | Option<**bool**> | Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions, and the demo API token's are always live. | [optional]
8
8
**editable** | Option<**bool**> | `true` keeps the PDF's text and check fields fillable, and `false` flattens every field. Left out, the template decides: its `editable_submissions` setting, or each field's own Editable option. A response shows the template's setting when the request left this out. Can't be `true` with `signature_requests`. | [optional]
9
-
**data** | Option<**std::collections::HashMap<String, serde_json::Value>**> | The values of the template's fields, by field name. Required for PDF templates, Word templates and page designs, unless `signature_requests` collects them (PDF templates only). | [optional]
9
+
**data** | Option<**std::collections::HashMap<String, serde_json::Value>**> | The values of the template's fields, by field name. Required for PDF templates, Word templates and page designs, unless `signature_requests` collects them (PDF templates only). Signatures come only from signature requests: a value for a signature or initials field makes the submission `invalid_data`, in test mode too. To print an image or a name you send, use an Image or Text field. | [optional]
10
10
**metadata** | Option<**std::collections::HashMap<String, serde_json::Value>**> | Your own data about the submission, such as an ID from your app. It isn't printed on the PDF. Two keys also change the PDF: `pdf_filename` names its file (`files.pdf.filename`, and its download), and `pdf_title` is its title in the PDF's document properties (and an HTML template's `<title>`, unless its HTML has one). Without `pdf_title`, the title is the template's name. In `pdf_filename`, a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the submission's ID (`sub_1234567890abcdef01.pdf`). | [optional]
11
11
**password** | Option<**String**> | A password that the PDF needs to be opened with. It's never returned; `has_password` says if it's set. Word documents and OpenDocument files can't be password-protected, so a submission with a password can't make them. | [optional]
12
12
**output_formats** | Option<[**HashSet<models::OutputFormat>**](OutputFormat.md)> | What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission. | [optional]
13
13
**expires_in** | Option<**i32**> | Seconds after the PDF is generated until the submission expires, up to 10 years (315360000). Default the template's expiration setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours. The demo API token's submissions expire within an hour: up to 3600, and that's their default. | [optional]
14
-
**field_overrides** | Option<[**std::collections::HashMap<String, models::FieldOverride>**](FieldOverride.md)> | Changes to field settings for this submission only, by field name, such as `{"name": {"required": false, "font_size": 9}}`. A setting that identifies the field (`id`, `name`, `type`), that only the template sets (such as `description`), or that doesn't apply to the field's type and display type (such as `check_character` on a field displayed as text) is a 422. With `signature_requests`, `editable: true` is a 422, and a `default` for a signature or initials field makes the submission `invalid_data`. | [optional]
14
+
**field_overrides** | Option<[**std::collections::HashMap<String, models::FieldOverride>**](FieldOverride.md)> | Changes to field settings for this submission only, by field name, such as `{"name": {"required": false, "font_size": 9}}`. A setting that identifies the field (`id`, `name`, `type`), that only the template sets (such as `description`), or that doesn't apply to the field's type and display type (such as `check_character` on a field displayed as text) is a 422. A `default` for a signature or initials field makes the submission `invalid_data`. With `signature_requests`, `editable: true` is a 422. | [optional]
15
15
**html** | Option<**String**> | For an HTML template, HTML to use instead of the template's. | [optional]
16
16
**css** | Option<**String**> | For an HTML template, SCSS (plain CSS works too) added after the template's styles, on the page and in its header and footer. It doesn't replace them: its rules come later, so they win over the template's rules of the same specificity. | [optional]
17
-
**signature_requests** | Option<[**Vec<models::SignatureRequestInput>**](SignatureRequestInput.md)> | The people who sign the PDF, and fill in their fields first. The PDF is generated once every signature request is completed. PDF templates only. Without `role`s, the first signature request is `Signer 1`, the second `Signer 2`, and so on. To leave a signer out, give every signature request its `role` and leave that one's out. Only the signers sign: a value for a signature or initials field in `data` makes the submission `invalid_data`. | [optional]
17
+
**signature_requests** | Option<[**Vec<models::SignatureRequestInput>**](SignatureRequestInput.md)> | The people who sign the PDF, and fill in their fields first. The PDF is generated once every signature request is completed. PDF templates only. Without `role`s, the first signature request is `Signer 1`, the second `Signer 2`, and so on. To leave a signer out, give every signature request its `role` and leave that one's out. | [optional]
18
18
**send_email** | Option<**bool**> | Whether DocSpring emails the signers their signing links, and sends the reminders and the completed document. Default true. Each signature request's own `send_email` overrides it. A test submission only emails your DocSpring team: every other address is a 422. `true` needs `signature_requests`. DocSpring doesn't email the signers of a form library template: leave `send_email` out, and send them their links yourself. | [optional]
19
19
**signing_order** | Option<[**models::SigningOrder**](SigningOrder.md)> | `parallel` (the default): everyone can sign at once. `sequential`: people sign one step at a time (`signing_step`), and DocSpring emails each step when the one before it is done. Needs `signature_requests`. | [optional]
20
20
**email_subject** | Option<**String**> | The subject of the emails that ask people to sign. You can use `{{ signer.name }}`, `{{ signer.email }}`, `{{ document.name }}`, `{{ sender.name }}` and `{{ account.name }}`. Default "<sender> sent you <document> to sign" when you leave it out (a blank subject is a 422). Links and web addresses are shown as plain text (`example[.]com`). | [optional]
0 commit comments