Submit the complete set of 45 turns in a script-mode Travel to fully replace the current Travel's acts. Only creationModel=scriptlist is supported.
Scope
Submit the complete set of 45 turns in a script-mode (creationModel=scriptlist) Travel to fully replace the current Travel's acts. 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's
creationModelmust bescriptlist, and its status must berunningorpending. 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/update-script
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/update-script
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Update script
|
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 update; its | |
scriptList Full script container. Only scriptList.acts Complete act list. Constraints:
This endpoint is a full replacement and does not support submitting only the changed turns. | |
userAgent SDK or client version identifier. A non-empty string; takes precedence over the HTTP |
Response parameters | Update accepted |
code Return code. | |
message Error message. | |
data Response data. |
Prerequisite states and call notes
- Only
creationModel=scriptlistsupports this endpoint; a standard-mode Travel that calls it by mistake returns409000. - The Travel status must be
runningorpending. actsmust be exactly 45 entries; turn must be 1–45, contiguous and non-duplicated, otherwise400000is returned.- Script content that fails the content-safety policy returns
403004; a copyright or IP compliance rejection returns403005.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After updating:
- Query Travel Status: view chapter information.
- Pause Travel / Rewind Travel.
- End Travel: end the session and process artifacts.