Request to pause a running Directing Travel. After the pause completes, you can call resume or rewind.
Scope
Request to pause a running Directing Travel. After the pause completes, you can call resume or rewind. Before calling, confirm the following:
- Authentication: The primary API Key is not required; either the primary or a temporary API Key can call it. For how to obtain them, see Obtain authentication credentials.
- Prerequisites: The Travel status must be
running. Confirm via Query Travel Status. - Caller: Either your server or your client can call it.
HTTP request
Singapore
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/pause
Replace {WorkspaceId} with your actual Workspace ID.
US (Virginia)
POST https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/pause
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Pause Travel |
Content-Type Request content type. This parameter must be set to | |
Authorization API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Request Body | |
encryptedTravelId The Directing encrypted Travel ID to pause. Returned by Enter Travel. | |
userAgent SDK or client version identifier. A non-empty string; takes precedence over the HTTP |
Response parameters | Pause succeeded |
code Return code. | |
message Error message. | |
data Response data. |
Prerequisite states and call notes
- The current Travel status must be
running. - The
versionin the enter-room response must bestoryV2; entering the room for this model always returns this value. - The server-side status confirmation of pause is an asynchronous process. When you need to immediately call rewind or resume, poll Query Travel Status until the status is
paused.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After pausing, you can do the following:
- Resume Travel: resume a paused Travel and continue running.
- Rewind Travel: return to a specified video timestamp.
- End Travel: end the Travel directly.