{
  "opencollection": "1.0.0",
  "info": {
    "name": "HashiCorp Nomad HTTP ACL Variables API",
    "version": "1.9.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Nomad-Token",
      "value": "{{X-Nomad-Token}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Variables",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List variables",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:4646/v1/vars",
            "params": [
              {
                "name": "prefix",
                "value": "",
                "type": "query",
                "description": "Specifies a string to filter results based on an ID prefix."
              },
              {
                "name": "namespace",
                "value": "",
                "type": "query",
                "description": "The target namespace. Defaults to the default namespace."
              },
              {
                "name": "next_token",
                "value": "",
                "type": "query",
                "description": "Indicates where to start paging for queries that support pagination."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page."
              }
            ]
          },
          "docs": "Lists all Nomad variables. Variables are encrypted key-value pairs stored in Nomad."
        },
        {
          "info": {
            "name": "Read a variable",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:4646/v1/var/:variablePath",
            "params": [
              {
                "name": "variablePath",
                "value": "",
                "type": "path",
                "description": "The path of the variable."
              },
              {
                "name": "namespace",
                "value": "",
                "type": "query",
                "description": "The target namespace. Defaults to the default namespace."
              }
            ]
          },
          "docs": "Returns the full variable including its items at the specified path."
        },
        {
          "info": {
            "name": "Create or update a variable",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:4646/v1/var/:variablePath",
            "params": [
              {
                "name": "variablePath",
                "value": "",
                "type": "path",
                "description": "The path of the variable."
              },
              {
                "name": "namespace",
                "value": "",
                "type": "query",
                "description": "The target namespace. Defaults to the default namespace."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new variable or updates an existing one at the specified path."
        },
        {
          "info": {
            "name": "Delete a variable",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost:4646/v1/var/:variablePath",
            "params": [
              {
                "name": "variablePath",
                "value": "",
                "type": "path",
                "description": "The path of the variable."
              },
              {
                "name": "namespace",
                "value": "",
                "type": "query",
                "description": "The target namespace. Defaults to the default namespace."
              }
            ]
          },
          "docs": "Deletes the variable at the specified path."
        }
      ]
    }
  ],
  "bundled": true
}