Abort script execution
Aborts the execution specified by the <executionId>
. The execution aborts immediately unless it is running a function that cannot be stopped, in which case it will abort once the function is complete.
The <executionId>
is the execution identifier returned by the Start New Script Execution operation.
Important: This endpoint remains supported for existing implementations. However, if your environment includesAI commands or theExecute JavaScript command in Scriptless Mobile, use the Scriptless Mobile Public API instead.
Request syntax
Copy
https://mycloud.perfectomobile.com/services/executions/<executionId>?operation=abort&securityToken=value[&optionalParameter=value]
Important: All REST API commands require authentication. See the general authentication methods in Authentication and authorization.
Parameters
Name | Default | Description |
---|---|---|
securityToken* |
|
A unique cryptographic key assigned to an authorized user. |
admin |
|
true to allow users with administrative credentials to abort an execution started by other automation users. |
responseFormat | json | The format to use for the response. Possible values: xml , json . |
* Mandatory
Response
Name | Description |
---|---|
status | Success if the execution was aborted. |