Upload file 📥

POST /upload/{container_uuid}

Use this endpoint to upload a file to secured Deck container. The container must exist in order to upload the file. Note that this endpoint does not provide any read access to prior file versions.

Path parameters

  • The uuid of the container as provided in Deck administration interface

Body

Responses

POST /upload/{container_uuid}
curl \
 -X POST https://api.ppe-analytics.com/api/v1/upload/{container_uuid} \
 -H "PPEApiKey: $API_KEY" \
 -H "Content-Type: multipart/form-data" \
 -F "file=@file"
Request example
{
  "file": "@file"
}
Response example (200)
{
  "status": "OK",
  "message": "File correctly uploaded to container 'a73ba5b9-498a-4b96-a766-5588d16ada3e' as version 4"
}
Response example (404)
{
  "status": "ERROR",
  "message": "Unknown container id 'plop'"
}