Upload endpoint
Uploading a file in REST API is a two-step process.
First, a user uses the Upload-endpoint to get the file in an inbound box and a UUID is returned. Subsequently, this UUID is set to the appropriate field in an Update-request.
The REST API will retrieve the file from the inbound box and place it in the correct place and store the actual file path in the business object.
When sending a file to this endpoint, the Content-Type in the header should be set to application/octet-stream. When this request is valid, a UUID will be returned that can be used in an Update request (see example).
Example
{
"filter" : {
"Code" : {"eq" : "304"}
},
"values" : {
"PhotoRef": {
"filename": "alice_wilson.jpg",
"uuid": "9df99275-2fcb-4541-9e3e-0c00b8022b81"
}
}
}