Skip to main content
POST
/
attachments
Create Attachment
curl --request POST \
  --url https://api.everhour.com/attachments \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "avatar.jpg",
  "content": "<string>"
}
'
{
  "id": 514,
  "name": "avatar.jpg",
  "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
}

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

Response

Created

id
number
Example:

514

name
string
Example:

"avatar.jpg"

token
string
Example:

"9a04b8a1fb99cbfadf3386ad6a338c14"