Resource URL: /platform/<<version=1>>/quota/reports

    Overview: This resource applies the standard collection pattern to quota
              reports.

     Methods: GET, POST

********************************************************************************

Method GET: List all or matching reports.

       URL: GET /platform/<<version=1>>/quota/reports

Query arguments:
     sort=<enum> Where <enum> is one of time, generated, type.  Order results
                 by this field.
 resume=<string> Continue returning results from previous call using this token
                 (token should come from the previous call, resume cannot be
                 used with other options).
generated=<enum> Where <enum> is one of manual, scheduled, all.  Only list
                 reports matching this source.
 limit=<integer> Return no more than this many results at once (see resume).
     type=<enum> Where <enum> is one of summary, detail, all.  Only list
                 reports matching this type.
      dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the sort.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "reports": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "properties": {
              "generated": {
                "enum": [
                  "manual", 
                  "scheduled"
                ], 
                "type": "string", 
                "description": "Whether report was manually requested (live) or scheduled.", 
                "required": true
              }, 
              "type": {
                "enum": [
                  "summary", 
                  "detail"
                ], 
                "type": "string", 
                "description": "Whether this is a summary or detail report.", 
                "required": true
              }, 
              "id": {
                "required": true, 
                "type": "string", 
                "description": "The system ID given to the report."
              }, 
              "time": {
                "required": true, 
                "type": "integer", 
                "description": "Unix epoch time the report was taken."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "type": [
            "string", 
            "null"
          ], 
          "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
        }
      }
    }
  ]
}

********************************************************************************

Method POST: Create a new report. The type of this report is 'manual'; it is
             also sometimes called 'live' or 'ad-hoc'.

        URL: POST /platform/<<version=1>>/quota/reports

There are no query arguments for this method.

POST request body schema:
{
  "type": [
    "null", 
    "object"
  ], 
  "description": "Null or any empty JSON object.", 
  "properties": {}
}

POST response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "id": {
          "required": true, 
          "minimum": 0, 
          "type": "integer", 
          "description": "ID of created item that can be used to refer to item in the collection-item resource path.", 
          "maximum": 18446744073709551615
        }
      }
    }
  ]
}
