创建 C2C 资产
创建 C2C 资产
此端点已弃用。请改用 /v2/devices/assets。虽然此端点将继续正常运行,但为了与 C2C API 的其余部分保持一致,我们建议集成方开始使用新的端点。
专用于 C2C 设备和应用程序的资产上传初始化。
身份验证
Bearer 身份验证,格式为 Bearer <token>,其中 token 是您的身份验证令牌。
请求头
请求
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.
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.
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.
响应头
The number of times you can make this call within the x-ratelimit-window
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.