{
  "opencollection": "1.0.0",
  "info": {
    "name": "Powernaut authentication resources API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "resources",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all resources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources",
            "params": [
              {
                "name": "site_id",
                "value": "",
                "type": "query",
                "description": "Identifier of the site to fetch resources for."
              },
              {
                "name": "connection_point_id",
                "value": "",
                "type": "query",
                "description": "Identifier of the site to fetch resources for.\n\n**Note**: This is deprecated, use `site_id` instead."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Gets all resources available to your current authorised scope, or for a site specifically."
        },
        {
          "info": {
            "name": "Create a resource",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Create a new resource.\n\nA maximum of 10 resources can be created per site."
        },
        {
          "info": {
            "name": "Get a resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Identifier of the resource."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Gets a resource by its unique ID."
        },
        {
          "info": {
            "name": "Update a resource",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Identifier of the resource you want to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Update a resource by its unique ID.\n\nOnly the properties you provide will be updated. Use `null` to unset a property."
        },
        {
          "info": {
            "name": "Delete a resource",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Identifier of the resource you want to delete."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Delete a resource\n\n**Important**: This action is irreversible and will remove all associated future bids and baselines."
        },
        {
          "info": {
            "name": "Get activations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sandbox.powernaut.io/v1/connect/resources/:id/activations",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Identifier of the resource you want to get activations for."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Page size"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "An optional date from which to start filtering activations (ISO 8601)"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "An optional date until which to filter activations (ISO 8601)"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Gets the activations for a resource."
        }
      ]
    }
  ],
  "bundled": true
}