Some API resources may have relationships with files. Examples may be:

  • a user picture ;
  • a work-contract attachment ;
  • etc…
1

Upload a file

First upload a file through the file-upload API endpoint.

Make sure to keep the id given in the response, you’ll need it later.
2

Set the file id as a reference on the object

You then need to set the uploaded file id on the corresponding resource.

Was this page helpful?