Actively end an Acting Travel. After a normal end it enters completed and starts processing artifacts; on a no-stream timeout end it enters failed and no replay artifacts are generated.
# Singapore (ap-southeast-1). For another region, replace ap-southeast-1 in the URL.# API keys are region-specific. See https://docs.qwencloud.com/developer-guides/getting-started/regionscurl --location 'https://ap-southeast-1.maas.qwencloudapi.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/end' \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "encryptedTravelId": "{encryptedTravelId}", "userAgent": "HappyOyster-Web/1.2.0"}'
After a normal end the Travel enters completed and starts processing artifacts; on a no-stream timeout end it enters failed and no replay artifacts are generated. Before calling, confirm the following:
Authentication: The primary API Key is not required; either the primary or a temporary API Key can call it.
Prerequisites: The Travel must not yet have entered a terminal state and must be in a state the server can end. Confirm via Query Travel Status.
Caller: Either your server or your client can call it.
The failure end reason for a no-stream timeout. When omitted, it is treated as a normal end. Currently only supported: TRAVEL_NO_STREAM_AUTO_END (no stream received after entering the room for longer than noStreamAutoEndTimeoutSec; this end type does not generate replay artifacts). Passing an unsupported value returns 400000.
Effective video duration in seconds; null on a no-stream failure end or when the duration cannot yet be parsed.
Copy
# Singapore (ap-southeast-1). For another region, replace ap-southeast-1 in the URL.# API keys are region-specific. See https://docs.qwencloud.com/developer-guides/getting-started/regionscurl --location 'https://ap-southeast-1.maas.qwencloudapi.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/end' \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "encryptedTravelId": "{encryptedTravelId}", "userAgent": "HappyOyster-Web/1.2.0"}'