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
- US (Virginia)
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/update-scriptReplace {WorkspaceId} with your actual Workspace ID.Request parameters |
The example shows only acts 1 and 2 to illustrate the structure and must not be submitted as-is. An actual request must contain all 45 entries, turn 1–45, contiguous and non-duplicated. |
Content-Typestring(Required)Request content type. This parameter must be set to application/json. | |
Authorization string (Required)API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Request Body | |
encryptedTravelId string (Required)The Directing encrypted Travel ID to update; its creationModel must be scriptlist. Returned by Enter Travel. | |
scriptList object (Required)Full script container. Only acts takes effect; even if it includes subjects, synopsis, scene, style, speed, language, setting, soundtrack, prologue, or videoTags, these fields are ignored and the platform continues to use the values saved at World creation.scriptList.acts array (Required)Complete act list. Constraints:
| |
userAgent string (Optional)SDK or client version identifier. A non-empty string; takes precedence over the HTTP User-Agent. |
Response parameters |
|
code integerReturn code. 0 means success; non-zero is an error code. | |
message stringError message. null on success. | |
data objectResponse data. null on failure.
Properties encryptedTravelId stringThe encrypted Travel ID.accepted booleanWhether the complete script has been accepted and entered the processing flow.turnCount integerThe number of turns in this full update, fixed at 45. |
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.