Provenance Proof content ingestion
POST {{baseUrl}}/data/resources
Every Asset (gem, parcel or jewellery) can have up to 3 images or videos and these can be submitted to the platform with the API. The /data/resources endpoint is used to upload of the selected media files. Each media file should have a unique file name reference. The HTTP request Content-Type is multipart/form-data.
Body form data
file < file-absolute-path>
The file name is to be submitted as form data in the body of the API call.
The form data information we are using is the file name. there are no requirements for the naming of the file of the media files which are being uploaded to the platform as long as each media file has a unique name for every submission. The form data field file allows you to specify the file name and the full path.
1file :
Response codes
The API will respond with a 201 code when the file has been accepted by the ingestion layer. Use the unique reference number of the asset to check on the provenance platform if the submission has been completed.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"bucket", "value"=>"GGL", "datatype"=>"string"}, {"name"=>"fileType", "value"=>"video", "datatype"=>"string"}, {"name"=>"isVideoThumbnail", "value"=>"true", "datatype"=>"boolean"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-evl-client-id | null | ||
x-evl-client-secret | null |