{
	"openapi": "3.0.0",
	"components": {
		"examples": {},
		"headers": {},
		"parameters": {},
		"requestBodies": {},
		"responses": {},
		"schemas": {
			"CSVExportResponse": {
				"properties": {
					"csv_id": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"csv_id"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81Status": {
				"enum": [
					"issued",
					"acknowledged",
					"accepted",
					"accepted_fixed",
					"rejected",
					"resolved_by_ha",
					"cancelled",
					"reassigned"
				],
				"type": "string"
			},
			"Section81Severity": {
				"enum": [
					"high",
					"low"
				],
				"type": "string"
			},
			"Section81Type": {
				"enum": [
					"tee_valve_access_covers",
					"cabinet",
					"marker_post",
					"pole_post",
					"overhead_cables_broken_low_encroaching_onto_highway",
					"other",
					"unattributed_works_live_site",
					"unattributed_works_completed"
				],
				"type": "string"
			},
			"Section81CSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/Section81Status"
						},
						"type": "array",
						"nullable": true
					},
					"severity": {
						"items": {
							"$ref": "#/components/schemas/Section81Severity"
						},
						"type": "array",
						"nullable": true
					},
					"issue_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"issue_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided issue_date_from"
					},
					"status_changed_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"status_changed_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided status_changed_date_from"
					},
					"type": {
						"items": {
							"$ref": "#/components/schemas/Section81Type"
						},
						"type": "array",
						"nullable": true
					},
					"section_81_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementStatus": {
				"enum": [
					"interim",
					"permanent"
				],
				"type": "string"
			},
			"ReinstatementCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/ReinstatementStatus"
						},
						"type": "array",
						"nullable": true
					},
					"latest_reinstatements_only": {
						"type": "boolean",
						"nullable": true
					},
					"registration_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"registration_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided registration_date_from"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the end_date_from"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ExpiringInterimReinstatementCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"registration_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"registration_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur after or on the provided registration_date_from"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur after or on the provided end_date_from"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"FPNStatus": {
				"enum": [
					"issued",
					"accepted",
					"paid",
					"paid_discounted",
					"disputed",
					"withdrawn"
				],
				"type": "string"
			},
			"OffenceCode": {
				"enum": [
					"offence_code_05",
					"offence_code_06",
					"offence_code_08",
					"offence_code_09"
				],
				"type": "string"
			},
			"FPNCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/FPNStatus"
						},
						"type": "array",
						"nullable": true
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "start_date must be before or the same as end_date if both are provided"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "end_date must be the same as or after start_date if both are provided"
					},
					"offence_code": {
						"items": {
							"$ref": "#/components/schemas/OffenceCode"
						},
						"type": "array",
						"nullable": true
					},
					"status_changed_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "status_changed_date_from must be before or the same as status_changed_date_to if both are provided"
					},
					"status_changed_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "end_date must be the same as or after status_changed_date_from if both are provided"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"FeeReportFormat": {
				"enum": [
					"all_orgs_one_csv",
					"single_org_one_csv",
					"all_orgs_multiple_csvs"
				],
				"type": "string"
			},
			"FeesCSVExportRequest": {
				"properties": {
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be within 30 days of provided end_date\nMust be provided if end_date is provided"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must occur on or after the provided start_date"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nMax length 4 characters"
					},
					"fee_report_format": {
						"allOf": [
							{
								"$ref": "#/components/schemas/FeeReportFormat"
							}
						],
						"nullable": true
					},
					"swa_code_filter": {
						"type": "string",
						"nullable": true,
						"description": "Required if fee_report_format = single_org_one_csv\nMax length 4 characters"
					},
					"export_description": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"start_date",
					"end_date",
					"fee_report_format"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitStatus": {
				"enum": [
					"submitted",
					"granted",
					"permit_modification_request",
					"refused",
					"closed",
					"cancelled",
					"revoked",
					"progressed",
					"under_assessment"
				],
				"type": "string"
			},
			"WorkStatus": {
				"enum": [
					"planned",
					"in_progress",
					"completed",
					"cancelled",
					"unattributable",
					"historical",
					"non_notifiable",
					"section_81"
				],
				"type": "string"
			},
			"WorkCategory": {
				"enum": [
					"minor",
					"standard",
					"major",
					"immediate_urgent",
					"immediate_emergency",
					"paa",
					"hs2_highway"
				],
				"type": "string"
			},
			"LaneRentalAssessmentOutcome": {
				"enum": [
					"chargeable",
					"potentially_chargeable",
					"charges_waived",
					"exempt",
					"charges_not_applicable"
				],
				"type": "string"
			},
			"PermitCsvExportPrefix": {
				"enum": [
					"PA",
					"WR",
					"PAA"
				],
				"type": "string"
			},
			"PermitCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/PermitStatus"
						},
						"type": "array",
						"nullable": true
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true
					},
					"lane_rental_assessment_outcome": {
						"items": {
							"$ref": "#/components/schemas/LaneRentalAssessmentOutcome"
						},
						"type": "array",
						"nullable": true
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided work_start_date_from"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided work_end_date_from"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"active_permit_only": {
						"type": "boolean",
						"nullable": true
					},
					"csv_export_prefix": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitCsvExportPrefix"
							}
						],
						"nullable": true
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true
					},
					"has_no_final_registration": {
						"type": "boolean",
						"nullable": true
					},
					"has_excavation": {
						"type": "boolean",
						"nullable": true
					},
					"is_early_start": {
						"type": "boolean",
						"nullable": true
					},
					"is_deemed": {
						"type": "boolean",
						"nullable": true
					},
					"lane_rental_charges_not_agreed": {
						"type": "boolean",
						"nullable": true
					},
					"lane_rental_charges_potentially_apply": {
						"type": "boolean",
						"nullable": true
					},
					"ever_modification_requested": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_works_only": {
						"type": "boolean",
						"nullable": true
					},
					"consultation_works_only": {
						"type": "boolean",
						"nullable": true
					},
					"consent_works_only": {
						"type": "boolean",
						"nullable": true
					},
					"unacknowledged_by_ha_only": {
						"type": "boolean",
						"nullable": true
					},
					"is_duration_challenged": {
						"type": "boolean",
						"nullable": true
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reasonable_period_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"reasonable_period_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after reasonable_period_end_date_from"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementsDueCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided work_start_date_from"
					},
					"registration_due_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"registration_due_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided registration_due_date_from"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"InspectionOutcome": {
				"enum": [
					"passed",
					"unable_to_complete_inspection",
					"failed_low",
					"failed_high",
					"further_inspections_required",
					"agreed_site_compliance",
					"non_compliant_with_conditions",
					"works_stopped_apparatus_remaining",
					"works_in_progress_no_carriageway_incursion",
					"works_in_progress",
					"works_stopped",
					"failed"
				],
				"type": "string"
			},
			"PromoterInspectionOutcomeStatusType": {
				"enum": [
					"inspection_outcome_accepted",
					"inspection_outcome_disputed",
					"joint_site_meeting_needed",
					"no_response"
				],
				"type": "string"
			},
			"HAInspectionOutcomeStatusType": {
				"enum": [
					"inspection_outcome_promoter_accepts_failed_inspection",
					"reviewing_dispute",
					"no_agreement",
					"inspection_withdrawn",
					"no_response"
				],
				"type": "string"
			},
			"InspectionType": {
				"enum": [
					"live_site",
					"reinstatement",
					"non_compliance_follow_up",
					"section_81",
					"investigatory_works"
				],
				"type": "string"
			},
			"InspectionCategory": {
				"enum": [
					"a",
					"b",
					"c",
					"third_party",
					"routine",
					"joint_site_visit",
					"follow_up",
					"follow_up_completion",
					"site_occupancy",
					"conditions",
					"core_sample",
					"skid_resistance",
					"texture_depth",
					"surface_regularity",
					"trial_hole"
				],
				"type": "string"
			},
			"InspectionCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date"
					},
					"inspection_type": {
						"items": {
							"$ref": "#/components/schemas/InspectionType"
						},
						"type": "array",
						"nullable": true
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur or or after the provided start_date_created"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"inspection_category": {
						"items": {
							"$ref": "#/components/schemas/InspectionCategory"
						},
						"type": "array",
						"nullable": true
					},
					"inspection_outcome": {
						"items": {
							"$ref": "#/components/schemas/InspectionOutcome"
						},
						"type": "array",
						"nullable": true
					},
					"promoter_outcome_status": {
						"items": {
							"$ref": "#/components/schemas/PromoterInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true
					},
					"ha_outcome_status": {
						"items": {
							"$ref": "#/components/schemas/HAInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true
					},
					"is_auto_accepted": {
						"type": "boolean",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanStatus": {
				"enum": [
					"raised",
					"cancelled",
					"progressed"
				],
				"type": "string"
			},
			"ForwardPlanCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"forward_plan_status": {
						"items": {
							"$ref": "#/components/schemas/ForwardPlanStatus"
						},
						"type": "array",
						"nullable": true
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided proposed_start_date"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided work_start_date_from"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided work_end_date_from"
					},
					"forward_plan_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"AlterationStatus": {
				"enum": [
					"submitted",
					"granted",
					"granted_with_duration_challenge",
					"refused",
					"deemed",
					"cancelled",
					"revoked",
					"auto_applied"
				],
				"type": "string"
			},
			"AlterationType": {
				"enum": [
					"PROMOTER_IMPOSED_CHANGE",
					"PROMOTER_CHANGE_REQUEST",
					"HA_CHANGE_REQUEST",
					"HA_IMPOSED_CHANGE",
					"WORK_EXTENSION",
					"DURATION_CHALLENGE",
					"MODIFIED_PERMIT"
				],
				"type": "string"
			},
			"PermitAlterationCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"alteration_status": {
						"items": {
							"$ref": "#/components/schemas/AlterationStatus"
						},
						"type": "array",
						"nullable": true
					},
					"alteration_type": {
						"items": {
							"$ref": "#/components/schemas/AlterationType"
						},
						"type": "array",
						"nullable": true
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true
					},
					"lane_rental_assessment_outcome": {
						"items": {
							"$ref": "#/components/schemas/LaneRentalAssessmentOutcome"
						},
						"type": "array",
						"nullable": true
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date_created"
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true
					},
					"is_duration_extension": {
						"type": "boolean",
						"nullable": true
					},
					"is_early_start": {
						"type": "boolean",
						"nullable": true
					},
					"is_deemed": {
						"type": "boolean",
						"nullable": true
					},
					"lane_rental_charges_not_agreed": {
						"type": "boolean",
						"nullable": true
					},
					"lane_rental_charges_potentially_apply": {
						"type": "boolean",
						"nullable": true
					},
					"status_update_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"status_update_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided status_update_date_from"
					},
					"permit_alteration_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 105 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"OrganisationDataCSVExportRequest": {
				"properties": {
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be within 30 days of provided end_date\nMust be a date in the past"
					},
					"start_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date must match the date provided in start_date"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be a date in the past\nMust occur on or after the provided start_date"
					},
					"end_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date must match the date provided in end_date"
					}
				},
				"required": [
					"start_date",
					"end_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CommentTopic": {
				"enum": [
					"GENERAL",
					"SECTION_74",
					"INSPECTION",
					"FPN",
					"OVERRUN",
					"FORWARD_PLAN",
					"CHANGE_REQUEST",
					"IMPOSED_VARIATION",
					"DURATION_CHALLENGE",
					"SECTION_81",
					"UNATTRIBUTED_WORKS"
				],
				"type": "string"
			},
			"CommentCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur after or on provided date_created_from"
					},
					"topic": {
						"items": {
							"$ref": "#/components/schemas/CommentTopic"
						},
						"type": "array",
						"nullable": true
					},
					"is_internal": {
						"type": "boolean",
						"nullable": true
					},
					"is_read": {
						"type": "boolean",
						"nullable": true
					},
					"is_not_read": {
						"type": "boolean",
						"nullable": true
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"author_email_address": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"is_incoming": {
						"type": "boolean",
						"nullable": true
					},
					"is_outgoing": {
						"type": "boolean",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"InspectionOutcomesCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitsCreatedCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FPNsCreatedCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitOutcomesCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationsCreatedCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationOutcomesCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PbiSampleInspectionPassFailRatesCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from"
				],
				"type": "object",
				"additionalProperties": false
			},
			"NumberOfInspectionUnitsCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section58Status": {
				"enum": [
					"proposed",
					"in_force",
					"cancelled",
					"closed"
				],
				"type": "string"
			},
			"Section58CSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"ha_organisation_name": {
						"type": "string",
						"nullable": true
					},
					"start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date_from"
					},
					"section_58_status": {
						"items": {
							"$ref": "#/components/schemas/Section58Status"
						},
						"type": "array",
						"nullable": true
					},
					"section_58_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"Section74HAStatus": {
				"enum": [
					"warning_issued",
					"charges_ended",
					"warning_disputed",
					"withdrawn",
					"draft_invoice_issued",
					"resolved"
				],
				"type": "string"
			},
			"Section74CSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_74_ha_status": {
						"items": {
							"$ref": "#/components/schemas/Section74HAStatus"
						},
						"type": "array",
						"nullable": true
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided date_created_from"
					},
					"section_74_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"PbiSampleInspectionsDueCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"sample_expiry_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"sample_expiry_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must be on or after sample_expiry_date_from"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"CSVExportStatusResponse": {
				"enum": [
					"queued",
					"in_progress",
					"ready",
					"failed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CSVExportTypeResponse": {
				"enum": [
					"FEE",
					"FORWARD_PLAN",
					"FPN",
					"INSPECTION",
					"PERMIT",
					"REINSTATEMENT",
					"SECTION_81",
					"PERMIT_ALTERATION",
					"ORGANISATION_DATA",
					"COMMENT",
					"REPORTING_INSPECTION_OUTCOMES",
					"REPORTING_PERMITS_CREATED",
					"REPORTING_PERMIT_OUTCOMES",
					"REPORTING_ALTERATIONS_CREATED",
					"REPORTING_ALTERATION_OUTCOMES",
					"REPORTING_FPNS_CREATED",
					"REPORTING_PERMITS_DEEMED",
					"SECTION_58",
					"SECTION_74",
					"SAMPLE_INSPECTIONS_DUE",
					"EXPIRING_INTERIM_REINSTATEMENT",
					"PBI_SAMPLE_INSPECTIONS_DUE",
					"REPORTING_PBI_PASS_FAIL_RATES",
					"NUMBER_OF_INSPECTION_UNITS",
					"PRIVATE_STREET_NOTICE",
					"REINSPECTION",
					"NON_COMPLIANCE",
					"REINSTATEMENTS_DUE",
					"MATERIAL_CLASSIFICATION",
					"PBI_SAMPLE_INSPECTION_TARGET",
					"INTERESTED_PARTY_PERMIT",
					"CHANGE_REQUEST",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CSVExportDetailsResponse": {
				"properties": {
					"csv_export_id": {
						"type": "number",
						"format": "double"
					},
					"filename": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"csv_export_status": {
						"$ref": "#/components/schemas/CSVExportStatusResponse"
					},
					"csv_export_status_string": {
						"type": "string"
					},
					"filters": {},
					"csv_export_type": {
						"$ref": "#/components/schemas/CSVExportTypeResponse"
					},
					"csv_export_type_string": {
						"type": "string"
					},
					"export_description": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"csv_export_id",
					"filename",
					"date_created",
					"csv_export_status",
					"csv_export_status_string",
					"filters",
					"csv_export_type",
					"csv_export_type_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetStatus": {
				"enum": [
					"cancelled",
					"issued"
				],
				"type": "string"
			},
			"PrivateStreetCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"private_street_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after start_date_from"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after end_date_from"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after date_created_from"
					},
					"private_street_status": {
						"items": {
							"$ref": "#/components/schemas/PrivateStreetStatus"
						},
						"type": "array",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ReinspectionCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date"
					},
					"inspection_type": {
						"items": {
							"$ref": "#/components/schemas/InspectionType"
						},
						"type": "array",
						"nullable": true
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur or or after the provided start_date_created"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"inspection_category": {
						"items": {
							"$ref": "#/components/schemas/InspectionCategory"
						},
						"type": "array",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"NonComplianceStatus": {
				"enum": [
					"issued",
					"withdrawn",
					"resolved"
				],
				"type": "string"
			},
			"NonComplianceResponseStatus": {
				"enum": [
					"issued",
					"withdrawn",
					"works_completed_and_passed",
					"joint_site_meeting_suggested",
					"will_attend_joint_site_meeting",
					"works_complete_ready_for_inspection",
					"joint_site_meeting_not_needed",
					"accept_suggestion",
					"no_response"
				],
				"type": "string"
			},
			"NonComplianceCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 106 characters"
					},
					"non_compliance_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceStatus"
						},
						"type": "array",
						"nullable": true
					},
					"ha_response_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceResponseStatus"
						},
						"type": "array",
						"nullable": true
					},
					"promoter_response_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceResponseStatus"
						},
						"type": "array",
						"nullable": true
					},
					"non_compliance_date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"non_compliance_date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after non_compliance_date_created_from"
					},
					"most_recent_inspection_type": {
						"items": {
							"$ref": "#/components/schemas/InspectionType"
						},
						"type": "array",
						"nullable": true
					},
					"most_recent_inspection_outcome": {
						"items": {
							"$ref": "#/components/schemas/InspectionOutcome"
						},
						"type": "array",
						"nullable": true
					},
					"most_recent_inspection_promoter_response_status": {
						"items": {
							"$ref": "#/components/schemas/PromoterInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true
					},
					"most_recent_inspection_ha_response_status": {
						"items": {
							"$ref": "#/components/schemas/HAInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"MaterialClassificationClassification": {
				"enum": [
					"hazardous",
					"non_hazardous"
				],
				"type": "string"
			},
			"MaterialClassificationCSVExportRequest": {
				"properties": {
					"material_classification_classification": {
						"$ref": "#/components/schemas/MaterialClassificationClassification"
					},
					"material_classification_reference_number": {
						"type": "string",
						"description": "Max length 50 characters"
					},
					"street_descriptor": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"sample_date_from": {
						"type": "string",
						"format": "date-time"
					},
					"sample_date_to": {
						"type": "string",
						"format": "date-time",
						"description": "Must occur on or after sample_date_from"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"description": "Must occur on or after date_created_from"
					},
					"export_description": {
						"type": "string",
						"description": "Max length 50 characters"
					}
				},
				"required": [
					"material_classification_classification"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PbiSampleInspectionTargetCSVExportRequest": {
				"properties": {
					"date_from": {
						"type": "string",
						"format": "date-time"
					},
					"date_to": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"date_from",
					"date_to"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InterestedPartyPermitsCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after work_start_date_from"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after work_end_date_from"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after start_date_created"
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true
					},
					"promoter_organisation_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"ha_organisation_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ChangeRequestStatus": {
				"enum": [
					"submitted",
					"granted",
					"refused",
					"deemed",
					"cancelled",
					"granted_with_duration_challenge",
					"revoked",
					"auto_applied"
				],
				"type": "string"
			},
			"ChangeRequestType": {
				"enum": [
					"PROMOTER_IMPOSED_CHANGE",
					"PROMOTER_CHANGE_REQUEST",
					"HA_CHANGE_REQUEST",
					"HA_IMPOSED_CHANGE",
					"WORK_EXTENSION",
					"DURATION_CHALLENGE",
					"MODIFIED_PERMIT"
				],
				"type": "string"
			},
			"ChangeRequestCSVExportRequest": {
				"properties": {
					"geographical_area_reference_number": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"street_descriptor": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if user is a contractor\nUp to four digits"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 50 characters"
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"change_request_status": {
						"items": {
							"$ref": "#/components/schemas/ChangeRequestStatus"
						},
						"type": "array",
						"nullable": true
					},
					"change_request_type": {
						"items": {
							"$ref": "#/components/schemas/ChangeRequestType"
						},
						"type": "array",
						"nullable": true
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided start_date_created"
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true
					},
					"status_update_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"status_update_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must occur on or after the provided status_update_date_from"
					},
					"change_request_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 105 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"token": {
				"type": "apiKey",
				"name": "token",
				"in": "header"
			}
		}
	},
	"info": {
		"title": "Street Manager Data Export API",
		"version": "1.0.0",
		"description": "See API specification Resource Guide > Data Export API for more information on endpoints\nNOTE: Swagger Editor/UI does not display all description text for enumerations and child elements, check swagger.json for full description text",
		"license": {
			"name": "MIT"
		},
		"contact": {}
	},
	"servers": [
		{
			"url": "/"
		}
	],
	"paths": {
		"/section-81s/csv": {
			"post": {
				"operationId": "GenerateSection81CSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Section 81s CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section81CSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/reinstatements/csv": {
			"post": {
				"operationId": "GenerateReinstatementsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Reinstatements CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ReinstatementCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/reinstatements/expiring-interims/csv": {
			"post": {
				"operationId": "GenerateExpiringInterimReinstatementsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Expiring Interim Reinstatements CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ExpiringInterimReinstatementCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/fixed-penalty-notices/csv": {
			"post": {
				"operationId": "GenerateFPNsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate FPNs CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/FPNCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/fees/csv": {
			"post": {
				"operationId": "GenerateFeesCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Fees CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/FeesCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/permits/csv": {
			"post": {
				"operationId": "GeneratePermitsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Permits CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/permits/reinstatements-due/csv": {
			"post": {
				"operationId": "GenerateReinstatementsDueCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Reinstatements due CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ReinstatementsDueCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/inspections/csv": {
			"post": {
				"operationId": "GenerateInspectionCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Inspections CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InspectionCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/forward-plans/csv": {
			"post": {
				"operationId": "GenerateForwardPlansCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Forward plans CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ForwardPlanCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/alterations/csv": {
			"post": {
				"operationId": "GeneratePermitAlterationsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Permit alterations CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAlterationCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/comments/csv": {
			"post": {
				"operationId": "GenerateCommentsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Comments CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CommentCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/section-58s/csv": {
			"post": {
				"operationId": "GenerateSection58CSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Section 58s CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section58CSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/section-74s/csv": {
			"post": {
				"operationId": "GenerateSection74CSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Section 74s CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section74CSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/pbi-sample-inspections-due/csv": {
			"post": {
				"operationId": "GeneratePbiSampleInspectionsDueCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate PBI Sample Inspections Due CSV for more information\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PbiSampleInspectionsDueCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/private-street-notices/csv": {
			"post": {
				"operationId": "GeneratePrivateStreetNoticesCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Private Street Notices CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PrivateStreetCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/reinspections/csv": {
			"post": {
				"operationId": "GenerateReinspectionCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Inspections CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ReinspectionCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/non-compliances/csv": {
			"post": {
				"operationId": "GenerateNonCompliancesCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Non Compliances CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/NonComplianceCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/material-classifications/csv": {
			"post": {
				"operationId": "GenerateMaterialClassificationCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Material Classification CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/MaterialClassificationCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/pbi-sample-inspection-targets/csv": {
			"post": {
				"operationId": "GeneratePBISampleInspectionTargetsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate PBI sample inspection targets CSV for more information\nAuthenticated user must have one of the following roles: Admin or StreetWorksAdmin",
				"security": [
					{
						"token": [
							"Admin",
							"StreetWorksAdmin"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PbiSampleInspectionTargetCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/interested-party-permits/csv": {
			"post": {
				"operationId": "GenerateInterestedPartyPermits",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Interested party permits CSV for more information\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InterestedPartyPermitsCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/change-requests/csv": {
			"post": {
				"operationId": "GenerateChangeRequestsCSV",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CSVExportResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Data Export API > Generate Change requests CSV for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ChangeRequestCSVExportRequest"
							}
						}
					}
				}
			}
		},
		"/csv/{csvId}": {
			"get": {
				"operationId": "GetCsv",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"text/csv": {
								"schema": {
									"type": "string"
								}
							}
						}
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "csvId",
						"required": true,
						"schema": {
							"type": "number"
						}
					}
				]
			}
		}
	}
}