Legacy | Update Scheduled Execution

Restriction: This information no longer refers to the latest product version but may still be relevant if you are working with an older version.

Updates an existing scheduled execution.

Changes the value of any provided parameter value. Parameters not included remain unchanged.

Request syntax

Copy
https://myCloud.perfectomobile.com/services/schedules/<scheduleKey>?operation=update&user=value&password=value&[&optionalParameter=value]

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
user* string 

Deprecated. The name of the user running the operation. 

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
password* string 

Deprecated. The password of the user running the operation. 

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
admin  boolean false true to allow users with administrative credentials to create schedules for users in their group.
owner 

string

user The user name of the user who owns the scheduled execution. This parameter is used in conjunction with the admin parameter to allow administrators to perform operations on scheduled executions of other users. If a user with administrative credentials wants to update a scheduled execution of user "User", specify the parameters asadmin=true and owner=User.
recurrence  Cron expression

Cron expression.

See notes in Create operation Parameters list

startTime  long
When the scheduled execution will start. In Unix/Epoch system time format
endTime  long
When the scheduled execution will end. In Unix/Epoch system time format
repeatCount  integer
The number of times the scheduled execution will be executed.
scriptKey  string
The repository key of the automation script file. For example, Private:executeScript.xml
param.<name>  string
The name and value of a run-time parameter for the script.
securedParam.<name> string
The name and value of a secured run-time parameter for the script.
description  string
The description of the scheduled execution (free text).
responseFormat string  json Available values: json, xml

* Mandatory parameter

Response

The response contains the updated scheduled execution's next run time:

Field Name Description
nextRunTime Specifies when the next scheduled execution will occur. The following are sub-fields of the nextRunTime.
formatted Run time in ISO date-time format
millis Run time in Unix/Epoch system time format