Create an attachment
Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.
Request body
Example request
{
"name": "image.png",
"contentType": "image/png"
}Response
OK
Example response
{
"data": {
"attachment": {
"contentType": "image/png"
}
}
}Changes
Changed in 2 of the 6 revisions of this API.10
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
- ○
added the optional property
datato the response with the400statusresponse-optional-property-added
- ○
added the optional property
datato the response with the401statusresponse-optional-property-added
- ○
added the optional property
datato the response with the403statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the400statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the401statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the403statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the400statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the401statusresponse-optional-property-added
- ○
added the optional property
statusto the response with the403statusresponse-optional-property-added
- ○