POST
/
lucca-files
/
api
/
uploads
curl --request POST \
  --url https://{host}/lucca-files/api/uploads \
  --header 'Accept: <accept>' \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: multipart/form-data'
{
  "id": "552cb7db-b7e2-4f39-a675-c4b140f41eea",
  "name": "test.pdf",
  "createdAt": "2023-10-24T12:19:54.7243377Z",
  "deletedAt": null,
  "contentLength": 95683,
  "contentType": "application/pdf",
  "extension": ".pdf",
  "totalPages": 3
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Accept
string
required

HTTP request header used for content-negotiation.

Allowed value: "application/json"
Content-Type
string
required

HTTP response header used for content-negotiation.

Allowed value: "multipart/form-data"

Body

multipart/form-data

Response

201 - application/json
Created

A file resource.