Files
Создать upload intent
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Sanctum token in Authorization: Bearer <token> format.
Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional
Makes unsafe requests safely repeatable for 24 hours by default.
X-Correlation-Idstring · max: 128Optional
Client-defined id used to correlate API request and webhook events.
Body
purposestring · enumRequiredPossible values:
resource_typestring · nullableOptional
resource_idstring · nullableOptional
field_keystring · nullableOptional
allowed_extensionsstring[] · nullableOptional
max_bytesinteger · nullableOptional
Responses
201
Upload intent.
application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
422
Standard error envelope.
application/json
post/private/files/upload-intents
Получить upload intent
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Sanctum token in Authorization: Bearer <token> format.
Path parameters
intentstring · uuidRequired
Responses
200
Upload intent.
application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
404
Standard error envelope.
application/json
get/private/files/upload-intents/{intent}
Загрузить файл по upload intent
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Sanctum token in Authorization: Bearer <token> format.
Path parameters
intentstring · uuidRequired
Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional
Makes unsafe requests safely repeatable for 24 hours by default.
X-Correlation-Idstring · max: 128Optional
Client-defined id used to correlate API request and webhook events.
Body
filestring · binaryRequired
Responses
200
Standard success envelope.
application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
resultany · nullableRequired
422
Standard error envelope.
application/json
post/private/files/upload-intents/{intent}/commit
Последнее обновление
Это было полезно?