cURL
curl --request POST \ --url http://localhost:3000/v2/documents/ \ --header 'Content-Type: multipart/form-data' \ --header 'x-API-Key: <api-key>' \ --form file='@example-file' \ --form 'name=<string>' \ --form 'objectId=<string>' \ --form 'userId=<string>' \ --form 'jobId=<string>' \ --form 'customerId=<string>'
{ "_id": "<string>", "ids": [ "<string>" ] }
Upload one or more documents as files (multipart/form-data). The document can be associated with an object, user, job, or customer by providing the respective IDs. At least one Id must be provided.
Document file(s) and optional metadata
File to upload
Document name (optional)
Related object ID (optional)
Related user ID (optional)
Related job ID (optional)
Related customer ID (optional)
Document(s) uploaded successfully
Was this page helpful?