跳轉到主要內容
POST
Update Task

授權

X-SecretKey
string
header
必填

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

主體

application/json

Note that when calling this API, all properties of the task have to be provided, including properties that you do not want to change. Parameters not specified would be set to default value. If the task name in the update request is new, a task rename operation will be executed before updating other fields of the task. WARNING: Renaming of a task may break logics where the task name is used as an identifier.

Note that when calling this API, all properties of the task have to be provided, including properties that you do not want to change. Parameters not specified would be set to default value. If the task name in the update request is new, a task rename operation will be executed before updating other fields of the task. WARNING: Renaming of a task may break logics where the task name is used as an identifier.

IsActive
boolean
必填

Whether the schedule is active. Inactive schedule will not trigger task execution.

Name
string
必填

Name of the task. This is a unique identifier for tasks in the title.

Type
enum<string>
必填

Task type.

可用選項:
CloudScript,
ActionsOnPlayerSegment,
CloudScriptAzureFunctions,
InsightsScheduledScaling
CustomTags
object

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

Description
string

Description the task

Identifier
object

Specify either the task ID or the name of the task to be updated.

範例:
Parameter
object

Parameter object specific to the task type. See each task type's create API documentation for details.

Schedule
string

Cron expression for the run schedule of the task. The expression should be in UTC.

回應

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日