跳轉到主要內容
POST
Execute Entity Cloud Script

授權

X-EntityToken
string
header
必填

This API requires an Entity Session Token, available from the Entity GetEntityToken method.

主體

application/json

Executes CloudScript with the entity profile that is defined in the request.

Executes CloudScript with the entity profile that is defined in the request.

FunctionName
string
必填

The name of the CloudScript function to execute

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

Entity
object

The optional entity to perform this action on. Defaults to the currently logged in entity.

FunctionParameter
object

Object that is passed in to the function as the first argument

GeneratePlayStreamEvent
boolean

Generate a 'entity_executed_cloudscript' PlayStream event containing the results of the function execution and other contextual information. This event will show up in the PlayStream debugger console for the player in Game Manager.

RevisionSelection
enum<string>

Option for which revision of the CloudScript to execute. 'Latest' executes the most recently created revision, 'Live' executes the current live, published revision, and 'Specific' executes the specified revision. The default value is 'Specific', if the SpecificRevision parameter is specified, otherwise it is 'Live'.

可用選項:
Live,
Latest,
Specific
SpecificRevision
number

The specific revision to execute, when RevisionSelection is set to 'Specific'

回應

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object
範例:
最後修改於 2026年10月6日