{
  "opencollection": "1.0.0",
  "info": {
    "name": "NetBird REST Accounts API",
    "version": "0.0.1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.netbird.io/api/accounts",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Returns a list of accounts of a user. Always returns a list of one account."
        },
        {
          "info": {
            "name": "Update an Account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.netbird.io/api/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of an account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update information about an account"
        },
        {
          "info": {
            "name": "Delete an Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.netbird.io/api/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of an account"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes an account and all its resources. Only account owners can delete accounts."
        }
      ]
    }
  ],
  "bundled": true
}