EaserixDocs
DevelopersAPI referenceNotesSharing

Upload a file (multipart, "file" field, ≤15MB)

View as Markdown
POST
/v1/pages/{id}/attachments
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/pages/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments" \  -F file="string"
{  "attachment": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "pageId": "347b9bf8-fe00-46f6-b8ca-1e06b3bd5809",    "filename": "string",    "contentType": "string",    "size": 0,    "url": "string",    "created": "2019-08-24T14:15:22Z"  }}