NETWORK SETTINGS

Use the Network Settings API to:

  • Retrieve network settings for a project
  • Store or update network settings for a project

HTTP Headers

Before submitting requests to the Network Settings API, set the following headers:

Header Name Example Value Description
X-User-Email admin@example.com Email of the user performing HTTP requests to the API.
X-User-Token Drv3yU7PdyqUMtr89erZ Token allowing the user access to the API.
X-User-Project OfOgUA4kTs2HrmYYlFw6Jg Project identifier. Value of the project.uid field.
Content-Type application/json Content type of the request body, if applicable.

Set header X-USER-EMAIL

Send a request to log in using POST api/auth/log_in.json described in the Auth API.

Using the email address returned in the response, set:

X-USER-EMAIL = data.email

Set header X-USER-TOKEN

Send a request to log in using POST api/auth/log_in.json described in the Auth API.

Using the authentication token returned in the response, set:

X-USER-TOKEN = data.token

Set header X-USER-PROJECT

Send a request to get projects using GET api/projects/ described in the Projects API.

Using the project UID returned in the response, set:

X-USER-PROJECT = projects[i].uid


Network Settings Endpoints

Functionality Method Endpoint
Retrieve network settings GET api/v2/network_settings

api/v2/private/network_settings
Store network settings POST api/v2/network_settings

Endpoints

Retrieve network settings

GET api/v2/network_settings

GET api/v2/private/network_settings

Retrieve network settings for a project specified in the request headers.

Response Fields

Field Type Description
network_settings[].project_uid string The unique identifier of the project to which the settings belong.
network_settings[].created_at string The timestamp, in ISO 8601 format, indicating when the network settings were created.
network_settings[].updated_at string The timestamp, in ISO 8601 format, indicating when the network settings were last updated.
network_settings[].service_mode object The object defining the service mode configuration of the network.
network_settings[].service_mode.enabled boolean Indicates whether the service mode is activated for the hybrid network.
network_settings[].service_mode.enabled_at string The timestamp, in ISO 8601 format, indicating when the service mode was enabled.
network_settings[].service_mode.expired boolean A read-only flag indicating whether the service mode has expired.
network_settings[].service_mode.duration number The number of minutes for which the service mode remains enabled. Must be within the range [1…240].
network_settings[].service_mode.devices_in_service_mode array A read-only list of UIDs of devices currently in service mode.

Example Response

{
  "network_settings": [
    {
      "project_uid": "exc7jTriQA2dVtIt3ab4hQ",
      "created_at": "2022-06-23T01:41:12.000Z",
      "updated_at": "2025-10-22T10:38:27.000Z",
      "service_mode": {
        "enabled_at": "2025-10-22T10:38:27.000Z",
        "enabled": true,
        "duration": 60,
        "expired": true,
        "devices_in_service_mode": ["UID1", "UID2"]
      }
    }
  ]
}

Errors

Error Status Error Type Error Body Error Description
401 Unauthorized {"message":"User not authorized", "code":"AUTHORIZATION_ERROR"} User does not have access to the resource.
422 Unprocessable Entity {"message":"...", "code":"VALIDATION_ERROR"} Validation error.

Store network settings

POST api/v2/network_settings

Store network settings for a project specified in the request headers.

Request Fields

Field Required Type Description
service_mode Required object The object defines the service mode configuration of the network.
service_mode.enabled Required boolean The flag indicating whether the service mode is activated for the hybrid network.
service_mode.duration Required number The number of minutes for which the service mode remains enabled. The value must be within the range [1…240].

Response Fields

Field Type Description
project_uid string The unique identifier of the project to which the settings belong.
created_at string The timestamp, in ISO 8601 format, indicating when the network settings were created.
updated_at string The timestamp, in ISO 8601 format, indicating when the network settings were last updated.
service_mode object The object defining the service mode configuration of the network.
service_mode.enabled boolean Indicates whether the service mode is activated for the hybrid network.
service_mode.enabled_at string The timestamp, in ISO 8601 format, indicating when the service mode was enabled.
service_mode.expired boolean A read-only flag indicating whether the service mode has expired.
service_mode.duration number The number of minutes for which the service mode remains enabled. Must be within the range [1…240].
service_mode.devices_in_service_mode array A read-only list of UIDs of devices currently in service mode.

Example Request

{
  "service_mode": {
    "enabled": true,
    "duration": 60
  }
}

Example Response

{
  "project_uid": "exc7jTriQA2dVtIt3ab4hQ",
  "created_at": "2022-06-23T01:41:12.000Z",
  "updated_at": "2025-10-22T10:38:27.000Z",
  "service_mode": {
    "enabled_at": "2025-10-22T10:38:27.000Z",
    "enabled": true,
    "duration": 60,
    "expired": false,
    "devices_in_service_mode": []
  }
}

Errors

Error Status Error Type Error Body Error Description
401 Unauthorized {"message":"User not authorized", "code":"AUTHORIZATION_ERROR"} User does not have access to the resource.
422 Unprocessable Entity {"message":"...", "code":"VALIDATION_ERROR"} Validation error.

results matching ""

    No results matching ""