v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14104474602.4 KB

Updates Realtime script metadata and content.

To update script metadata, specify the script ID and provide updated name and/or version values.

To update script content, provide an updated zip file by pointing to either a local file or an Amazon S3 bucket location. You can use either method regardless of how the original script was uploaded. Use the Version parameter to track updates to the script.

If the call is successful, the updated metadata is stored in the script record and a revised script is uploaded to the Amazon GameLift service. Once the script is updated and acquired by a fleet instance, the new version is used for all new game sessions.

Learn more

Amazon GameLift Realtime Servers

Related actions

All APIs by task

post/#X-Amz-Target=GameLift.UpdateScript

Headers

X-Amz-Target'GameLift.UpdateScript' required

Request body

ScriptIdstring required

A unique identifier for the Realtime script to update. You can use either the script ID or ARN value.

Namestring

A descriptive label that is associated with a script. Script names don't need to be unique.

Versionstring

Version information associated with a build or script. Version strings don't need to be unique.

ZipFilestring
<p>A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.</p> <p>When using the Amazon Web Services CLI tool to create a script, this parameter is set to the zip file name. It must be prepended with the string "fileb://" to indicate that the file data is a binary object. For example: <code>--zip-file fileb://myRealtimeScript.zip</code>.</p>

Response

Success