Create C2C asset
THIS ENDPOINT IS DEPRECATED. Please use /v2/devices/assets instead. While this endpoint will continue to function as normal, we ask that integrations begin using the new endpoint instead for consistency with the rest of the C2C API.
Asset upload initiation specifically for C2C devices and applications.
Headers
Request
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.
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".
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.
Response
Asset create success response.
When is_realtime_asset was set to true in the request, a simplified payload will be returned.