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

multipart/form-data

Body

Responses

  • 200 application/json

    Valid upload

    Hide response attributes Show response attributes object
  • 404 application/json

    Invalid upload

    Hide response attributes Show response attributes object
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"
Response examples (200)
{
  "status": "OK",
  "message": "File correctly uploaded to container 'a73ba5b9-498a-4b96-a766-5588d16ada3e' as version 4"
}
Response examples (404)
{
  "status": "ERROR",
  "message": "Unknown container id 'plop'"
}