Перейти к содержимому
EN

Keep file forever

PATCH
/files/{file_id}/keep
curl --request PATCH \
--url https://api.mixen.ai/v1/files/1/keep \
--header 'Authorization: Bearer <token>'

Switches a temp file to permanent storage: no expiry, counted against the 1 GB permanent quota.

file_id
required
File Id
integer

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}