Attachments
Create an attachment
Changed onCreating 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.
post/attachments.create
Request
- Base URLhttps://app.getoutline.com/api
- URLhttps://app.getoutline.com/api/attachments.create
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://app.getoutline.com/oauth/authorizeToken URL: https://app.getoutline.com/oauth/token scopes: read, write
Request body
Example request
{
"name": "image.png",
"contentType": "image/png"
}Response
OK
Example response
{
"data": {
"attachment": {
"contentType": "image/png"
}
}
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- breaking
the response property
//became nullable for the status - breaking
the
//response's property type changed fromnumbertostringfor status - info
added the optional property
//to the response with the status
- breaking