Skip to content

Commit 86843f5

Browse files
Regenerated docs, added new translations, updated example template
1 parent 489118a commit 86843f5

6 files changed

Lines changed: 78 additions & 6 deletions

File tree

examples/json/TemplateUpdateRequest.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@
33
"title": "Test Title",
44
"subject": "Test Subject",
55
"message": "Test Message",
6-
"cc_roles": ["CC Role 1", "CC Role 2"]
6+
"cc_roles": ["CC Role 1", "CC Role 2"],
7+
"form_fields": [
8+
{
9+
"api_id": "uniqueIdHere_1",
10+
"name": "New name 1"
11+
},
12+
{
13+
"api_id": "uniqueIdHere_2",
14+
"name": "New name 2"
15+
}
16+
]
717
}

openapi-raw.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9467,6 +9467,17 @@ components:
94679467
type: integer
94689468
default: 12
94699469
type: object
9470+
SubUpdateFormField:
9471+
required:
9472+
- api_id
9473+
properties:
9474+
api_id:
9475+
description: '_t__Sub::UpdateFormField::API_ID'
9476+
type: string
9477+
name:
9478+
description: '_t__Sub::UpdateFormField::NAME'
9479+
type: string
9480+
type: object
94709481
SubFormFieldsPerDocumentHyperlink:
94719482
description: '_t__Sub::FormFieldsPerDocument::DESCRIPTION_EXTENDS'
94729483
allOf:
@@ -10325,6 +10336,11 @@ components:
1032510336
description: '_t__TemplateUpdate::MESSAGE'
1032610337
type: string
1032710338
maxLength: 5000
10339+
form_fields:
10340+
description: '_t__TemplateUpdate::FORM_FIELDS'
10341+
type: array
10342+
items:
10343+
$ref: '#/components/schemas/SubUpdateFormField'
1032810344
type: object
1032910345
TemplateUpdateFilesRequest:
1033010346
properties:

openapi-sdk.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7249,8 +7249,8 @@ paths:
72497249
post:
72507250
tags:
72517251
- Template
7252-
summary: 'Edit Template'
7253-
description: 'Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.'
7252+
summary: 'Update Template'
7253+
description: 'Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.'
72547254
operationId: templateUpdate
72557255
parameters:
72567256
-
@@ -9955,6 +9955,17 @@ components:
99559955
type: integer
99569956
default: 12
99579957
type: object
9958+
SubUpdateFormField:
9959+
required:
9960+
- api_id
9961+
properties:
9962+
api_id:
9963+
description: 'The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found'
9964+
type: string
9965+
name:
9966+
description: 'The new name of the field. If not passed the name will remain unchanged.'
9967+
type: string
9968+
type: object
99589969
SubFormFieldsPerDocumentHyperlink:
99599970
description: 'This class extends `SubFormFieldsPerDocumentBase`.'
99609971
allOf:
@@ -10962,6 +10973,11 @@ components:
1096210973
description: 'The new default template email message.'
1096310974
type: string
1096410975
maxLength: 5000
10976+
form_fields:
10977+
description: 'A list of document form fields to update. The endpoint will not create or remove any fields. Every field must be identified by `api_id`, and the only supported change is renaming the field.'
10978+
type: array
10979+
items:
10980+
$ref: '#/components/schemas/SubUpdateFormField'
1096510981
type: object
1096610982
TemplateUpdateFilesRequest:
1096710983
properties:

openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9818,6 +9818,17 @@ components:
98189818
type: integer
98199819
default: 12
98209820
type: object
9821+
SubUpdateFormField:
9822+
required:
9823+
- api_id
9824+
properties:
9825+
api_id:
9826+
description: 'The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found'
9827+
type: string
9828+
name:
9829+
description: 'The new name of the field. If not passed the name will remain unchanged.'
9830+
type: string
9831+
type: object
98219832
SubFormFieldsPerDocumentHyperlink:
98229833
description: 'This class extends `SubFormFieldsPerDocumentBase`.'
98239834
allOf:
@@ -10825,6 +10836,11 @@ components:
1082510836
description: 'The new default template email message.'
1082610837
type: string
1082710838
maxLength: 5000
10839+
form_fields:
10840+
description: 'A list of document form fields to update. The endpoint will not create or remove any fields. Every field must be identified by `api_id`, and the only supported change is renaming the field.'
10841+
type: array
10842+
items:
10843+
$ref: '#/components/schemas/SubUpdateFormField'
1082810844
type: object
1082910845
TemplateUpdateFilesRequest:
1083010846
properties:

test_fixtures/TemplateUpdateRequest.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
"title": "Test Title",
55
"subject": "Test Subject",
66
"message": "Test Message",
7-
"cc_roles": ["one", "two"]
7+
"cc_roles": ["one", "two"],
8+
"form_fields": [
9+
{
10+
"api_id": "uniqueIdHere_1",
11+
"name": "New name 1"
12+
},
13+
{
14+
"api_id": "uniqueIdHere_2",
15+
"name": "New name 2"
16+
}
17+
]
818
}
919
}

translations/en.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,12 @@
777777
"TemplateRemoveUser::EMAIL_ADDRESS": The id or email address of the Account to remove access to the Template. The account id prevails if both are provided.
778778
"TemplateRemoveUser::TEMPLATE_ID": The id of the Template to remove the Account's access to.
779779

780-
"TemplateUpdate::SUMMARY": Edit Template
781-
"TemplateUpdate::DESCRIPTION": Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
780+
"TemplateUpdate::SUMMARY": Update Template
781+
"TemplateUpdate::DESCRIPTION": Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
782782
"TemplateUpdate::TEMPLATE_ID": The ID of the template to update.
783783
"TemplateUpdate::CC_ROLES": The CC roles that must be assigned when using the template to send a signature request.
784784
"TemplateUpdate::ALLOW_FORM_VIEW": "The CC roles that must be assigned when using the template to send a signature request. If set to `true` all the form fields on template document must have non-empty names."
785+
"TemplateUpdate::FORM_FIELDS": A list of document form fields to update. The endpoint will not create or remove any fields. Every field must be identified by `api_id`, and the only supported change is renaming the field.
785786
"TemplateUpdate::TITLE": The title you want to assign to the SignatureRequest.
786787
"TemplateUpdate::SUBJECT": The new default template email subject.
787788
"TemplateUpdate::MESSAGE": The new default template email message.
@@ -1230,6 +1231,9 @@
12301231
"Sub::SigningOptions::TYPE": Allows typing the signature
12311232
"Sub::SigningOptions::UPLOAD": Allows uploading the signature
12321233

1234+
"Sub::UpdateFormField::API_ID": The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
1235+
"Sub::UpdateFormField::NAME": The new name of the field. If not passed the name will remain unchanged.
1236+
12331237
"Sub::UnclaimedDraftSigner::DESCRIPTION": Add Signers to your Unclaimed Draft Signature Request.
12341238
"Sub::UnclaimedDraftSigner::EMAIL_ADDRESS": The email address of the signer.
12351239
"Sub::UnclaimedDraftSigner::NAME": The name of the signer.

0 commit comments

Comments
 (0)