The /api/edge/set.json
endpoint allows you to set a specific part 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)).
A HTTP POST to /api/edge/set.json
with the JSON configuration attributes to set as the request content.
Name | Type | Values | Description |
---|---|---|---|
|
Object |
|
An object that contains status values for the set request. |
|
String |
A session ID |
The authorisation string for this session that confirms the user is correctly authenticated. |
|
String |
JSON configuration |
The parent section of the set value after the set. |
|
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. |
Name | Type | Values | Description |
---|---|---|---|
|
String |
A boolean encapsulated in a string (e.g. |
Whether the configuration settings set operation failed. |
|
String |
A boolean encapsulated in a string (e.g. |
Whether the configuration settings set operation was successful. |
{"custom-attribute":{"hi":null}}
{"SET": {"failure": "0", "success": "1"}, "SESSION_ID": "742dfcc13b8d449aa36a4a1847bfcef7", "GET": {"custom-attribute": {"hi": null}}, "COMMIT": {"failure": "0", "success": "1"}, "SAVE": {"success": "1"}, "success": true}