Pular para o conteúdo principal
POST
Update Task

Autorizações

X-SecretKey
string
header
obrigatório

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

Corpo

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
obrigatório

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

Name
string
obrigatório

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

Type
enum<string>
obrigatório

Task type.

Opções disponíveis:
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.

Exemplo:
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.

Resposta

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
Última modificação em 6 de outubro de 2026