{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/PostFormSeriesResponseDTO", "title": "PostFormSeriesResponseDTO", "type": "object", "properties": { "data": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/FormSeriesReportEnum" }, "attributes": { "type": "object", "properties": { "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.\nEach value in the results array corresponds to the date time at the same index.", "type": "array", "items": { "$ref": "#/components/schemas/SeriesData" }, "example": [ { "groupings": { "form_id": "abc123" }, "statistics": { "viewed_form": [ 100, 120, 140 ], "submits": [ 20, 22, 28 ] } }, { "groupings": { "form_id": "def456" }, "statistics": { "viewed_form": [ 200, 300, 400 ], "submits": [ 20, 25, 30 ] } } ] }, "date_times": { "description": "An array of date times which correspond to the equivalent index in the results data.", "type": "array", "items": { "type": "string", "format": "date-time" }, "example": [ "2024-01-05T00:00:00+00:00", "2024-01-06T00:00:00+00:00", "2024-01-07T00:00:00+00:00" ] } }, "required": [ "results", "date_times" ] } }, "required": [ "type", "attributes" ] }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ] }