Создать ресурс C2C

Deprecated
**ЭТА КОНЕЧНАЯ ТОЧКА НЕ ИСПОЛЬЗУЕТСЯ**. Используйте вместо нее "/v2/devices/assets". Хотя эта конечная точка продолжит работать в обычном режиме, мы просим, чтобы интеграции начали использовать новую конечную точку для согласованности с остальными конечными точками C2C API. Инициация добавления ресурса специально для устройств и приложений C2C.

Аутентификация

AuthorizationBearer

Аутентификация Bearer в форме Bearer <token>, где token — ваш токен аутентификации.

Заголовки

x-client-versionstringОпциональныйПо умолчанию 0.0.0
Firmware or software version of a C2C integration. Will be used to determine the correct Device Model configuration for the device when multiple are available. Must be a valid semantic version. For more on semantic versions, see here: https://semver.org/

Запрос

While supported, we encourage you to switch from application/x-ww-form-urlencoded to application/json in order to support future workflows that will only be supported through JSON.

When is_realtime_upload is true, call must be made in application/json.

namestringОпциональныйПо умолчанию
The name the asset should have in Frame.io. This value does not have to match the name of the file on disk; it can be whatever you want it to be in Frame.io. Required if `is_realtime_upload` is `false`. If `is_realtime_upload` is `true`, must containa valid extension in the form of `".[ext]"`, unless `extension` is provided, in which case this field may be `null` or omitted.
extensionstringОпциональныйformat: "\..+"
Required when `is_realtime_upload` is `true`, when `name` is not known at time of asset creation. If `name` is provided, must match extension of that value. Ignored when `is_realtime_upload` is `false`. When supplied, asset will be creted with `name` value of `"[new file].extension"`.
filetypestringОпциональный

MIME type like video/quicktime. Many languages have built in utilities for detecting file mimetype (see Go and Python for examples).

Required if is_realtime_upload is true.

auto_version_idstringОпциональныйformat: "uuid"
The asset you'd like this to be the next version of
is_realtime_uploadbooleanОпциональныйПо умолчанию false

If true, File data for this asset is to be uploaded through the Real-time Uploads API.

If false, File data for this asset will be uploaded through the default API.

Must be false if filetype is not file.

filesizestring or integerОпциональный
channelstring or integerОпциональный
offsetstring or integerОпциональный
partsstring or integerОпциональный

Заголовки ответа

x-ratelimit-limitdouble

The number of times you can make this call within the x-ratelimit-window

x-ratelimit-windowstringОпциональный
The length in milliseconds of the rate limit window
x-ratelimit-remainingstringОпциональный

The number of remaining times you can make this API call in the x-ratelimit-window

Ответ

Asset create success response.

When is_realtime_asset was set to true in the request, a simplified payload will be returned.

object
OR
RealtimeAssetCreateResponseobject

Ошибки

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error