{
  "opencollection": "1.0.0",
  "info": {
    "name": "Red Hat 3scale Account Management Accounts Applications API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "access_token",
      "value": "{{access_token}}",
      "placement": "query"
    }
  },
  "items": [
    {
      "info": {
        "name": "Applications",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Applications for Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}-admin.3scale.net/admin/api/accounts/:account_id/applications.json",
            "params": [
              {
                "name": "access_token",
                "value": "",
                "type": "query",
                "description": "Admin API access token"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The ID of the developer account"
              }
            ]
          },
          "docs": "Returns all applications belonging to a specific developer account. Applications represent individual API credentials (keys or OAuth clients)."
        },
        {
          "info": {
            "name": "Create Application",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}-admin.3scale.net/admin/api/accounts/:account_id/applications.json",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The ID of the developer account"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Creates a new application for a developer account, subscribing it to a specific application plan. The application will be assigned API keys or OAuth client credentials based on the service authentication mode."
        },
        {
          "info": {
            "name": "Get Application",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}-admin.3scale.net/admin/api/accounts/:account_id/applications/:id.json",
            "params": [
              {
                "name": "access_token",
                "value": "",
                "type": "query",
                "description": "Admin API access token"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The application ID"
              }
            ]
          },
          "docs": "Returns details for a specific application including keys and credentials."
        },
        {
          "info": {
            "name": "Update Application",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{domain}-admin.3scale.net/admin/api/accounts/:account_id/applications/:id.json",
            "params": [
              {
                "name": "access_token",
                "value": "",
                "type": "query",
                "description": "Admin API access token"
              },
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Updates an application's name, description, or plan assignment."
        },
        {
          "info": {
            "name": "Get Application Usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}-admin.3scale.net/admin/api/applications/:application_id/usage.json",
            "params": [
              {
                "name": "access_token",
                "value": "",
                "type": "query",
                "description": "Admin API access token"
              },
              {
                "name": "application_id",
                "value": "",
                "type": "path",
                "description": "The application ID"
              },
              {
                "name": "metric_name",
                "value": "",
                "type": "query",
                "description": "The name of the metric to retrieve"
              },
              {
                "name": "period",
                "value": "",
                "type": "query",
                "description": "The time period for the statistics"
              },
              {
                "name": "since",
                "value": "",
                "type": "query",
                "description": "Start date for custom date range"
              },
              {
                "name": "until",
                "value": "",
                "type": "query",
                "description": "End date for custom date range"
              }
            ]
          },
          "docs": "Returns usage statistics for a specific application. Supports filtering by metric, time period, and date range."
        }
      ]
    }
  ],
  "bundled": true
}