ProjectsAttachments
Attach a file to a marker
POST
The second step: registers the object uploaded to fileKey. 400 when nothing was uploaded there.
Who may call it: Anyone on the project whose permission profile allows marker.update. API keys: yes, given marker.update 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.
markerId*stringapplication/json- body
fileName*stringMatch
^[^/\\]+$Length
1 <= length <= 255contentType*stringLength
1 <= length <= 200sizeBytes*integerRange
0 < value <= 9007199254740991ownerField?|The owner's field the file goes on; absent or null for the record as a whole.
fileKey*stringThe fileKey the upload URL was presigned for.
Length
1 <= length <= 500Created.
application/json- response
attachment*Example Request
curl -X POST 'http://localhost:3000/api/projects/string/markers/string/attachments' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "string", "contentType": "string", "sizeBytes": 1, "fileKey": "string"}'Example Response
{ "attachment": { "id": "string", "ownerType": "form", "ownerId": "string", "ownerField": "string", "fileName": "string", "contentType": "string", "sizeBytes": -9007199254740991, "createdById": "string", "createdAt": "2019-08-24T14:15:22Z" }}