---
updatedAt: 2025-09-17T00:08:46.000Z
agentTools:
  projectIndex: https://docs.api.everactive.com/llms.txt
---

# Set Network Time Protocol (NTP) Configuration.

Set the NTP Configuration with custom NTP Servers.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Gateway Configuration",
    "version": "1.0.0",
    "contact": {
      "email": "ims@shoplogix.com"
    },
    "description": "This is the Everactive Gateway Configuration API. Through these endpoints you will be able to retrieve and update the configuration of the Gateway network interfaces and services like the MQTT interface. \n\nAll endpoints require Mutual TLS (mTLS) authentication using trusted certificates at the transport layer. As a result, no additional security mechanisms are specified in the API definition. For details on certificate provisioning, please refer to the Gateway documentation."
  },
  "tags": [
    {
      "name": "Network",
      "description": "Gateway Network Configuration"
    }
  ],
  "paths": {
    "/ntp": {
      "post": {
        "summary": "Set Network Time Protocol (NTP) Configuration.",
        "operationId": "post-ntp",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NTPConfiguration"
              }
            }
          },
          "description": ""
        },
        "description": "Set the NTP Configuration with custom NTP Servers.",
        "tags": [
          "Network"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "http://GatewayIP/v1"
    }
  ],
  "components": {
    "schemas": {
      "NTPConfiguration": {
        "title": "NTPConfiguration",
        "type": "object",
        "description": "NTP Service configuration",
        "x-examples": {
          "internet": {
            "host": [
              "ntp.ubuntu.com",
              "0.ubuntu.pool.ntp.org"
            ],
            "airgapped": false
          },
          "airgapped": {
            "host": [
              "10.0.0.10"
            ],
            "airgapped": true
          }
        },
        "properties": {
          "host": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "local": {
            "type": "boolean"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "A code that uniquely identifies the error type",
            "example": "error_validation"
          },
          "message": {
            "type": "string",
            "description": "A human-readable message that describes the error",
            "example": "Validation error."
          },
          "errors": {
            "type": "array",
            "description": "An array of sub-error objects that provide additional information about the situation.",
            "nullable": true,
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "example": "error_invalid_ip_address"
                },
                "message": {
                  "type": "string",
                  "example": "the value provided for the network interface is an invalid IP address"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```