curl --request POST \
--url https://api.mottostreaming.com/streaming/uploads/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"region": "REGION_UNSPECIFIED",
"object_name": "<string>",
"content_type": "<string>",
"ttl": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"resumable": true
}'
{
"upload_session": {
"id": "<string>",
"project_id": "<string>",
"reserved_asset_id": "<string>",
"object_name": "<string>",
"content_type": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"expire_time": "2023-11-07T05:31:56Z",
"create_time": "2023-11-07T05:31:56Z"
},
"signed_url": "<string>"
}
CreateUploadSession
Creates a new upload session.
curl --request POST \
--url https://api.mottostreaming.com/streaming/uploads/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"region": "REGION_UNSPECIFIED",
"object_name": "<string>",
"content_type": "<string>",
"ttl": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"resumable": true
}'
{
"upload_session": {
"id": "<string>",
"project_id": "<string>",
"reserved_asset_id": "<string>",
"object_name": "<string>",
"content_type": "<string>",
"size_bytes": "<string>",
"access_control_mode": "ACCESS_CONTROL_MODE_UNSPECIFIED",
"expire_time": "2023-11-07T05:31:56Z",
"create_time": "2023-11-07T05:31:56Z"
},
"signed_url": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.