Upload a file
POST /lucca-files/api/uploads HTTP/1.1 Host: example.ilucca.net Authorization: lucca application={API_KEY} Accept: application/json Content-Type: multipart/form-data; boundary=---abc -----abc Content-Disposition: form-data; name=""; filename="test.pdf" -----abc--
Set the file id as a reference on the object
PUT /api/v3/users/416 HTTP/1.1 Host: example.ilucca.net Authorization: lucca application={API_KEY} Accept: application/json Content-Type: application/json { "picture": { "id": "618d5bac-2f38-4d5b-8ba3-981733dffeff" } }
Was this page helpful?