Skip to main content
POST
Create Attachment

Authorizations

X-Api-Key
string
header
required

Body

application/json
name
string
required
Example:

"avatar.jpg"

content
string
required

Base64 file content. Only jpg, png and pdf supported

type
enum<string>

Object the attachment is linked to. Defaults to expense.

Available options:
assignment,
task,
user,
expense
Example:

"expense"

Response

Created

id
number
Example:

514

name
string
Example:

"avatar.jpg"

token
string
Example:

"9a04b8a1fb99cbfadf3386ad6a338c14"