Passer au contenu principal
POST
/
file
/
create
Créer un fichier
curl --request POST \
  --url https://api.example.com/file/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'project_id=<string>' \
  --form file='@example-file'
{
  "digest": "<string>"
}

Autorisations

Authorization
string
header
requis

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Corps

multipart/form-data
project_id
string
requis
file
file
requis

Réponse

Réponse réussie

digest
string
requis