Execute Generic Action

Action

Execute (instance)

Title

Execute

Method

POST

URL

/api/<resource_type>/<resource_name>/execute/

Parameters

hierarchy=[hierarchy]

Support Async

true

Class

execute

For example, execute a data synchronization action for a device. In this case, the call would be:

POST /api/data/DataSync/[pkid]/execute/
  ?hierarchy=[hierarchy]
  &nowait=true
  &format=json

And for a device data/CallManager, the payload would be similar to:

{
    "data": {
        "asynchronous": false,
        "device_type": "data/CallManager",
        "model_type_list": "minimum CUCM models",
        "name": "minimum CUCM models",
        "refresh_existing_data": true,
        "sync_type": "pull"
    },
    "meta": {
        "references": {
            "form_href": "/api/data/DataSync/[pkid]/
             ?hierarchy=[hierarchy]"
        }
    },
    "request_meta": {}
}