Skip to main content
POST
Confirm an uploaded file

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json
key
string
gerekli

The S3 object key returned by the presign endpoint.

Maximum string length: 1024
group_id
string<uuid>
gerekli

The group id returned by the presign endpoint.

name
string
gerekli

The display name to store for the file.

Maximum string length: 255
type
enum<string>
gerekli

The file type.

Mevcut seçenekler:
form_image,
audio,
catalog,
certificate,
image,
video,
other,
before_after
fileable_type
enum<string>
gerekli

The fileable type (customer, lead, user, tenant, chat_log, ai_report, treatment, or treatment_group).

Mevcut seçenekler:
customer,
lead,
user,
tenant,
chat_log,
ai_report,
treatment,
treatment_group
fileable_id
integer
gerekli

The fileable id.

Gerekli aralık: x >= 1
description
string | null

The file description.

Maximum string length: 1000

Yanıt

success
string
gerekli
data
FileResource · object
gerekli