Upload Files
Description
Value
The Endpoint
POST https://api.test.archer-app.com/v2/loads/999999/filesExamples
curl --request POST \
--url https://api.test.archer-app.com/v2/loads/999999/files \
--header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \
--cookie 'auth-server-token=TOKEN;' \
--form file=confirmation.pdf \
--form description=1var data = new FormData();
data.append("file", "~/confirmation.pdf");
data.append("description", "1");
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://api.test.archer-app.com/v2/loads/999999/files");
xhr.setRequestHeader("cookie", "auth-server-token=TOKEN;");
xhr.send(data);Body Object
ExampleBody
Response
Response Properties
Name
Type
Description
Example Response
Example Error Response
Last updated