Skip to main content
POST
Python

Autorizações

Authorization
string
header
obrigatório

nia_sk_...

Corpo

application/json
content_type
string
obrigatório
Required string length: 1 - 256
sha256
string
obrigatório
Pattern: ^[0-9a-f]{64}$
size_bytes
integer
obrigatório
Intervalo obrigatório: x <= 524288000
subject
Handle · object | null

De quem é a mídia. O objeto fica guardado sob o handle do titular, então o forget o alcança mesmo que nenhum evento aponte para ele.

Resposta

O lugar do upload, válido até expires_at.

expires_at
string<date-time>
obrigatório
media_ref
string
obrigatório
upload_url
string
obrigatório

URL pré-assinada. Envie os bytes com PUT.

upload_headers
Upload Headers · object

Envie exatamente estes cabeçalhos com o upload; o armazenamento recusa qualquer outro conteúdo.