Skip to main content
POST
Upload a library document

Autorizações

Authorization
string
header
obrigatório

Personal access token (izap_pat_…) sent as Authorization: Bearer ; dashboard session JWTs are also accepted.

Cabeçalhos

business-id
string | null
obrigatório

Business UUID whose library is targeted. Required when the user has more than one business.

Corpo

multipart/form-data
file
file
obrigatório
description
string | null
tags
string | null
title
string | null

Resposta

Successful Response

Metadata for an image stored in the business library.

Backed by the :class:aizap.models.documents.Document model, filtered to image document types.

business_id
string<uuid> | null
obrigatório
content_type
string
obrigatório
created
string<date-time>
obrigatório
document_type
string
obrigatório
file_size
integer
obrigatório
filename
string
obrigatório
id
string<uuid>
obrigatório
original_filename
string
obrigatório
url
string
obrigatório
description
string | null
tags
string[] | null
title
string | null
uploaded_by_user_id
string<uuid> | null