FormsForm templates
Get a form template upload URL
POST
Where to PUT a PDF for a new template, or a new version of one. The file goes to the organization's own storage if it has one.
Who may call it: Anyone on the project whose permission profile allows form-template.create. API keys: yes, given form-template.create for this project.
cookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
projectId*stringThe project's id.
application/json- body
fileName*stringMatch
^[^/\\]+$Length
1 <= length <= 255sizeBytes*integerAt most 50 MB.
Range
0 < value <= 9007199254740991OK.
application/json- response
url*stringPUT the file's bytes here.
Format
urifileKey*stringPass with the file name to create the template, or its next version, once the upload is done.
expiresAt*stringWhen url stops working: an hour.
Format
date-timeExample Request
curl -X POST 'http://localhost:3000/api/projects/string/form-templates/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "string", "sizeBytes": 1}'Example Response
{ "url": "http://example.com", "fileKey": "string", "expiresAt": "2019-08-24T14:15:22Z"}