Script Management API

/api/space/script-management/scripts/exec-enable

The following operations are supported on this resource:

POST /api/space/script-management/scripts/exec-enable (v2)


This API enables scripts on devices. Here a script and a device are passed as reference URLs (href).

Access Control

The following capabilities are required to access this API:
"EnableScriptCap"


Example Usage

Since this API makes an asynchronous method call, the user must specify a queue parameter with this API.

POST /api/space/script-management/scripts/exec-enable?queue-url=<queue-url>&schedule-time=<schedule-time>

Note: It is assumed that the queue denoted by <queue-url> has, already, been created.



Parameters

NameTypeURI TypeDescriptionRequired
queue-urlURLQueryA fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage)Y
schedule-timecron-like-expressionQuerySchedule this API in the future, by specifying a cron-like-expression (See Job Scheduling)N

Content Types