Presign an issue attachment upload
The first of two steps: PUT the file to the URL, then register it. At most 25 MB, or 50 MB for a PDF on the record as a whole. Refused when an issue does not take this file now.
Who may call it: Anyone on the project whose permission profile allows issue.update — or issue.update-own, on their own (issues they created, or assigned to them or their company). API keys: yes, given issue.update for this project.
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.
issueId*stringapplication/json- body
fileName*string^[^/\\]+$1 <= length <= 255contentType*string1 <= length <= 200sizeBytes*integer0 < value <= 9007199254740991ownerField?|The owner's field the file goes on; absent or null for the record as a whole.
OK.
application/json- response
url*stringPUT the file's bytes here, before expiresAt.
urifileKey*stringWhere it goes; send it back to register the upload.
expiresAt*stringdate-timecurl -X POST 'http://localhost:3000/api/projects/string/issues/string/attachments/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "string", "contentType": "string", "sizeBytes": 1}'{ "url": "http://example.com", "fileKey": "string", "expiresAt": "2019-08-24T14:15:22Z"}