<%= t('request_signature_multiple_submitters_with_default_values') %>
POST
<%= api_submissions_path %>
<% text = capture do %>curl --location '<%= api_submissions_url %>' \
--header 'X-Auth-Token: API_TOKEN' \
--data-raw '{
"template_id": <%= current_account.templates.last&.id || 1 %>,
"submitters": [
{
"name": "John Doe",
"role": "<%= current_account.templates.last ? current_account.templates.last.submitters.first['name'] : 'First Party' %>",
"email": "<%= current_user.email.sub('@', '+test@') %>",
"values": {
"Form Text Field Name": "Default Value"
}
},
{ "role": "Second Submitter", "email": "<%= current_user.email.sub('@', '+test2@') %>" }
]
}'<% end.to_str %>
<%= render 'shared/clipboard_copy', icon: 'copy', text:, class: 'btn btn-ghost text-white', icon_class: 'w-6 h-6 text-white', copy_title: t('copy'), copied_title: t('copied') %>
<%== HighlightCode.call(text, 'Shell', theme: 'base16.dark') %>