The /api/edge/batch.json
endpoint allows you to make batch queries/deletions/updates to specific parts of the device’s configuration.
It does not support a HTTP GET.
This method is CSRF protected so also requires a X-CSRF-TOKEN
(see Sensitive Requests (CSRF Protection)).
Name | Type | Values | Description |
---|---|---|---|
|
Object |
|
An object that contains status values for the set request. |
|
Object |
|
An object that contains status values for the deletion request. |
|
String |
A session ID |
The authorisation string for this session that confirms the user is correctly authenticated. |
|
String |
JSON configuration |
The requested section of the configuration after the operation is performed (defaults to the requested section for deletion/setting by default). |
|
Object |
|
An object that contains status values for the configuration commit request. |
|
Object |
|
An object that contains status values for the configuration save request. |
|
Boolean |
|
Whether the API request was successful. |
{
"SET":{"system":{"host-name":"<hostname>"},"service":{"unms":{"disable":null}}},
"GET":{"system":null,"service":null}
}
{
"SET": {"failure": "0", "success": "1"},
"SESSION_ID": "session_id",
"GET": {
"system": { system as json },
"service": { service as json },
....
},
"COMMIT": {"failure": "0", "success": "1"},
"SAVE": {"success": "1"},
"success": true
}
{"DELETE":{"custom-attribute":null}}
{"DELETE": {"failure": "0", "success": "1"}, "SESSION_ID": "742dfcc13b8d449aa36a4a1847bfcef7", "GET": { .. Configuration .. }, "COMMIT": {"failure": "0", "success": "1"}, "SAVE": {"success": "1"}, "success": true}