{
	"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/Section81Status"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid Section 81 status. Only Section 81s with one of the supplied statuses are exported"
					},
					"severity": {
						"items": {
							"$ref": "#/components/schemas/Section81Severity"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid Section 81 severity. Only Section 81s with one of the supplied severities are exported"
					},
					"issue_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only Section 81s issued (created) on or after this date and time are exported"
					},
					"issue_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must occur on or after issue_date_from (compared by calendar date in UK time; the comparison is skipped when issue_date_from is not supplied or is not a valid date). Only Section 81s issued (created) on or before this date and time are exported"
					},
					"status_changed_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only Section 81s whose status last changed on or after this date and time are exported"
					},
					"status_changed_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must occur on or after status_changed_date_from (compared by calendar date in UK time; the comparison is skipped when status_changed_date_from is not supplied or is not a valid date). Only Section 81s whose status last changed on or before this date and time are exported"
					},
					"type": {
						"items": {
							"$ref": "#/components/schemas/Section81Type"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid Section 81 type. Only Section 81s with one of the supplied types are exported"
					},
					"section_81_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only Section 81s whose reference number contains this text are exported (the supplied text is converted to upper case before matching)"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/ReinstatementStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid reinstatement status. Only reinstatements with one of the given statuses are exported"
					},
					"latest_reinstatements_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only reinstatements that are the active (latest) reinstatement are exported. When false or not provided, no filter is applied"
					},
					"registration_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly reinstatements registered on or after this date and time are exported"
					},
					"registration_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided registration_date_from (compared by UK calendar day; not checked when registration_date_from is not provided).\nOnly reinstatements registered on or before this date and time are exported"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly reinstatements whose end date is on or after this date and time are exported"
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided end_date_from (compared by UK calendar day; not checked when end_date_from is not provided).\nOnly reinstatements whose end date is on or before this date and time are exported"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Matches reinstatements whose works reference number contains this text (the text is converted to upper case before matching)"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"registration_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly reinstatements registered on or after this date and time are exported"
					},
					"registration_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided registration_date_from (compared by UK calendar day; not checked when registration_date_from is not provided).\nOnly reinstatements registered on or before this date and time are exported"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly reinstatements whose end date is on or after this date and time are exported"
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided end_date_from (compared by UK calendar day; not checked when end_date_from is not provided).\nOnly reinstatements whose end date is on or before this date and time are exported"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Matches reinstatements whose works reference number contains this text (the text is converted to upper case before matching)"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/FPNStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly FPNs with one of the listed statuses are exported. Each value must be a valid FPN status and values must be unique"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly FPNs issued on or after this date and time are exported"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly FPNs issued on or before this date and time are exported. Must occur on or after the provided start_date (compared by calendar date in UK time; not checked if start_date is not supplied)"
					},
					"offence_code": {
						"items": {
							"$ref": "#/components/schemas/OffenceCode"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly FPNs with one of the listed offence codes are exported. Each value must be a valid offence code and values must be unique"
					},
					"status_changed_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly FPNs whose status last changed on or after this date and time are exported"
					},
					"status_changed_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly FPNs whose status last changed on or before this date and time are exported. Must occur on or after the provided status_changed_date_from (compared by calendar date in UK time; not checked if status_changed_date_from is not supplied)"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only FPNs whose works reference number contains this text (matched in upper case) are exported"
					}
				},
				"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": "Required\nStart of the date range, applied to the date of the chargeable transaction\nThe date range between start_date and end_date cannot exceed 30 days (31 calendar days including both dates)"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "Required\nMust occur on or after the provided start_date (compared by UK calendar date)"
					},
					"swa_code": {
						"type": "string",
						"nullable": true,
						"description": "Optional, but required if the user is a contractor (the promoter organisation the contractor is working on behalf of)\nMust be a string of up to 4 characters\nFor a contractor, must belong to an organisation the contractor's organisation has a contract with, and that organisation must not be suspended or disabled\nLeading zeros are ignored when the organisation is looked up"
					},
					"fee_report_format": {
						"allOf": [
							{
								"$ref": "#/components/schemas/FeeReportFormat"
							}
						],
						"nullable": true,
						"description": "Required\nMust be one of: all_orgs_one_csv, single_org_one_csv, all_orgs_multiple_csvs"
					},
					"swa_code_filter": {
						"type": "string",
						"nullable": true,
						"description": "Required if fee_report_format is single_org_one_csv, otherwise ignored and not validated\nMust be a non-empty string of up to 4 characters\nMust be the reference of an existing organisation; leading zeros are ignored when it is looked up\nFor a planner or contractor this is the highway authority to report on; for a highway authority user this is the promoter organisation to report on"
					},
					"export_description": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nFree text description stored with the export; this endpoint does not validate it"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional, only used for highway authority users\nMust be true or false. Defaults to true. When false, only the user's primary organisation is used."
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"items": {
							"$ref": "#/components/schemas/PermitStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid permit status. Only permits with one of the given statuses are exported"
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work status. Only permits on works with one of the given statuses are exported"
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work category. Only permits whose work category is one of the given categories are exported"
					},
					"lane_rental_assessment_outcome": {
						"items": {
							"$ref": "#/components/schemas/LaneRentalAssessmentOutcome"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid lane rental assessment outcome. Only permits with one of the given outcomes are exported"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose end date is on or after this date are exported"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided start_date (compared by UK calendar day; not checked when start_date is not provided).\nOnly permits whose start date is on or before this date are exported"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose start date is on or after this date are exported"
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided work_start_date_from (compared by UK calendar day; not checked when work_start_date_from is not provided).\nOnly permits whose start date is on or before this date are exported"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose end date is on or after this date are exported"
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided work_end_date_from (compared by UK calendar day; not checked when work_end_date_from is not provided).\nOnly permits whose end date is on or before this date are exported"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only permits created on or after this date and time are exported"
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only permits created on or before this date and time are exported. Not checked against start_date_created"
					},
					"active_permit_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only active permits are exported. When false or not provided, no filter is applied"
					},
					"csv_export_prefix": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitCsvExportPrefix"
							}
						],
						"nullable": true,
						"description": "Optional\nMust be one of: PA, WR, PAA. Sets the prefix of the generated file name. Defaults to PA"
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits marked as traffic sensitive are exported. When false or not provided, no filter is applied"
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits with a high impact traffic management type are exported. When false or not provided, no filter is applied"
					},
					"has_no_final_registration": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits that do not have a final reinstatement are exported. When false or not provided, no filter is applied"
					},
					"has_excavation": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits where an excavation was carried out are exported. When false or not provided, no filter is applied"
					},
					"is_early_start": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits with early start pre-approval details recorded are exported. When false or not provided, no filter is applied"
					},
					"is_deemed": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only deemed permits are exported. When false or not provided, no filter is applied"
					},
					"lane_rental_charges_not_agreed": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits with a chargeable lane rental assessment outcome and charges that have not been agreed are exported. When false or not provided, no filter is applied"
					},
					"lane_rental_charges_potentially_apply": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits with a chargeable or potentially chargeable lane rental assessment outcome, or that are lane rental permits, are exported. When false or not provided, no filter is applied"
					},
					"ever_modification_requested": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits for which a modification has ever been requested are exported. When false or not provided, no filter is applied"
					},
					"hs2_works_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits of the HS2 promoter organisation are exported. When false or not provided, no filter is applied"
					},
					"consultation_works_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits of the HS2 promoter organisation that are HS2 consultation works are exported. When false or not provided, no filter is applied"
					},
					"consent_works_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits of the HS2 promoter organisation that are HS2 consent works are exported. When false or not provided, no filter is applied"
					},
					"unacknowledged_by_ha_only": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits of the HS2 promoter organisation that are HS2 consultation works not yet acknowledged by the highway authority are exported. When false or not provided, no filter is applied"
					},
					"is_duration_challenged": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits whose duration has been challenged are exported. When false or not provided, no filter is applied"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose permit reference number contains this text are exported (not case sensitive)"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose permit reference number contains this text are exported (not case sensitive); the text is matched against the permit reference number, not a separate works reference field"
					},
					"reasonable_period_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose reasonable period end date is on or after this date are exported"
					},
					"reasonable_period_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after reasonable_period_end_date_from (compared by UK calendar day; not checked when reasonable_period_end_date_from is not provided).\nOnly permits whose reasonable period end date is on or before this date are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Matches permits whose works reference number contains this text (the text is converted to upper case before matching)"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only permits whose works end date is on or after this date are exported"
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must occur on or after the provided work_end_date_from (compared by UK calendar day; not checked when work_end_date_from is not provided).\nOnly permits whose works end date is on or before this date are exported"
					},
					"registration_due_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required unless registration_due_date_to is provided (at least one of the two must be provided)\nMust be a valid date, within the last 90 days and not later than today. At least one of registration_due_date_from and registration_due_date_to must be today (UK calendar day).\nIt is not checked against registration_due_date_to. Only permits whose reinstatement registration due date is on or after this date are exported"
					},
					"registration_due_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required unless registration_due_date_from is provided (at least one of the two must be provided)\nMust be a valid date, not earlier than the start of today and not more than 10 days in the future. At least one of registration_due_date_from and registration_due_date_to must be today (UK calendar day).\nIt is not checked against registration_due_date_from. Only permits whose reinstatement registration due date is on or before this date are exported"
					}
				},
				"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",
					"inspection_outcome_promoter_disagrees_with_ha_acceptance_on_behalf",
					"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date"
					},
					"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,
						"description": "Optional\nEach value must be a valid inspection type"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date"
					},
					"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,
						"description": "Optional\nEach value must be a valid inspection category"
					},
					"inspection_outcome": {
						"items": {
							"$ref": "#/components/schemas/InspectionOutcome"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly inspections with one of the listed outcomes are exported. Each value must be a valid inspection outcome"
					},
					"promoter_outcome_status": {
						"items": {
							"$ref": "#/components/schemas/PromoterInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly inspections whose promoter response is one of the listed statuses are exported. Each value must be a valid promoter response status; no_response matches inspections with no promoter response recorded"
					},
					"ha_outcome_status": {
						"items": {
							"$ref": "#/components/schemas/HAInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly inspections whose highway authority response is one of the listed statuses are exported. Each value must be a valid highway authority response status; no_response matches inspections with no highway authority response recorded"
					},
					"is_auto_accepted": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nMust be true or false. When true, only inspections that were automatically accepted are exported; false has the same effect as omitting the field"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"forward_plan_status": {
						"items": {
							"$ref": "#/components/schemas/ForwardPlanStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly forward plans with one of the listed statuses are exported. Each value must be a valid forward plan status"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose end date is on or after this date are exported"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose start date is on or before this date are exported. Must occur on or after the provided proposed_start_date (compared by calendar date in UK time; not checked if proposed_start_date is not supplied)"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose start date is on or after this date are exported"
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose start date is on or before this date are exported. Must occur on or after the provided work_start_date_from (compared by calendar date in UK time; not checked if work_start_date_from is not supplied)"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose end date is on or after this date are exported"
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly forward plans whose end date is on or before this date are exported. Must occur on or after the provided work_end_date_from (compared by calendar date in UK time; not checked if work_end_date_from is not supplied)"
					},
					"forward_plan_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only forward plans whose reference number contains this text (case-insensitive) are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"alteration_status": {
						"items": {
							"$ref": "#/components/schemas/AlterationStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid alteration status. Only alterations with one of the given statuses are exported"
					},
					"alteration_type": {
						"items": {
							"$ref": "#/components/schemas/AlterationType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid alteration type. Only alterations of one of the given types are exported"
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work status. Only alterations on works with one of the given statuses are exported"
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work category. Only alterations whose work category is one of the given categories are exported"
					},
					"lane_rental_assessment_outcome": {
						"items": {
							"$ref": "#/components/schemas/LaneRentalAssessmentOutcome"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid lane rental assessment outcome. Only alterations whose permit has one of the given outcomes are exported"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly alterations created on or after this date and time are exported"
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided start_date_created (compared by UK calendar day; not checked when start_date_created is not provided).\nOnly alterations created on or before this date and time are exported"
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations marked as traffic sensitive are exported. When false or not provided, no filter is applied"
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations with a high impact traffic management type are exported. When false or not provided, no filter is applied"
					},
					"is_duration_extension": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations of type WORK_EXTENSION are exported. When false or not provided, no filter is applied"
					},
					"is_early_start": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations with early start pre-approval details recorded are exported. When false or not provided, no filter is applied"
					},
					"is_deemed": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations with status deemed are exported. When false or not provided, no filter is applied"
					},
					"lane_rental_charges_not_agreed": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations whose permit has a chargeable lane rental assessment outcome with charges not agreed are exported. When false or not provided, no filter is applied"
					},
					"lane_rental_charges_potentially_apply": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only alterations whose permit has a chargeable or potentially chargeable lane rental assessment outcome, or is a lane rental permit, are exported. When false or not provided, no filter is applied"
					},
					"status_update_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly alterations whose status last changed on or after this date and time are exported"
					},
					"status_update_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided status_update_date_from (compared by UK calendar day; not checked when status_update_date_from is not provided).\nOnly alterations whose status last changed on or before this date and time are exported"
					},
					"permit_alteration_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 105 characters. Matches alterations whose reference number contains this text (the text is converted to upper case before matching)"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly comments created on or after this date and time are exported"
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur after or on provided date_created_from (compared by calendar day in UK time, checked only when date_created_from is provided).\nOnly comments created on or before this date and time are exported"
					},
					"topic": {
						"items": {
							"$ref": "#/components/schemas/CommentTopic"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid comment topic. Only comments with one of the listed topics are exported"
					},
					"is_internal": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only internal comments authored by your organisation are exported.\nWhen false or omitted, internal comments from other organisations are excluded"
					},
					"is_read": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only read comments are exported. If is_not_read is also true, read and unread comments are both exported"
					},
					"is_not_read": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only unread comments are exported. If is_read is also true, read and unread comments are both exported"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Matches comments whose works reference number contains this value"
					},
					"author_email_address": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Matches comments whose author email address contains this value"
					},
					"is_incoming": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only comments authored by other organisations are exported"
					},
					"is_outgoing": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only comments authored by your organisation are exported. If is_incoming is also true, both are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"ha_organisation_name": {
						"type": "string",
						"nullable": true,
						"description": "Optional, only applied for Planner and Contractor users (ignored for Highway Authority users)\nMax length 100 characters\nOnly Section 58s whose Highway Authority organisation name contains this text (case-insensitive) are exported"
					},
					"start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date\nOnly Section 58s with a restriction start date on or after this value are exported"
					},
					"start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date\nMust occur on or after the provided start_date_from (only checked when start_date_from is provided)\nOnly Section 58s with a restriction start date on or before this value are exported"
					},
					"section_58_status": {
						"items": {
							"$ref": "#/components/schemas/Section58Status"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be one of: proposed, in_force, cancelled, closed\nOnly Section 58s with one of the supplied statuses are exported; an empty array applies no status filter"
					},
					"section_58_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters\nOnly Section 58s whose reference number contains this text are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_74_ha_status": {
						"items": {
							"$ref": "#/components/schemas/Section74HAStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid Section 74 highway authority status. Only Section 74s with one of the supplied statuses are exported"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only Section 74s created on or after this date and time are exported"
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must occur on or after date_created_from (compared by calendar date in UK time; the comparison is skipped when date_created_from is not supplied or is not a valid date). Only Section 74s created on or before this date and time are exported"
					},
					"section_74_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only Section 74s whose reference number contains this text (case-insensitive) are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only sample inspections on works whose promoter organisation name contains this text are exported (case-insensitive)"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only sample inspections on works whose works reference number contains this text are exported (the text is converted to upper case before matching)"
					},
					"sample_expiry_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only sample inspections with a sample expiry date on or after this date and time are exported"
					},
					"sample_expiry_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must be on or after sample_expiry_date_from (compared as UK calendar dates; not checked if sample_expiry_date_from is missing or invalid). Only sample inspections with a sample expiry date on or before this date and time are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"private_street_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only private street notices whose reference number contains this text (case-insensitive) are exported"
					},
					"start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices whose proposed start date is on or after this date are exported"
					},
					"start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices whose proposed start date is on or before this date are exported. Must occur on or after the provided start_date_from (compared by calendar date in UK time; not checked if start_date_from is not supplied)"
					},
					"end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices whose proposed end date is on or after this date are exported"
					},
					"end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices whose proposed end date is on or before this date are exported. Must occur on or after the provided end_date_from (compared by calendar date in UK time; not checked if end_date_from is not supplied)"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices created on or after this date are exported"
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly private street notices created on or before this date are exported. Must occur on or after the provided date_created_from (compared by calendar date in UK time; not checked if date_created_from is not supplied)"
					},
					"private_street_status": {
						"items": {
							"$ref": "#/components/schemas/PrivateStreetStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly private street notices with one of the listed statuses are exported. Each value must be a valid private street status"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date"
					},
					"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,
						"description": "Optional\nEach value must be a valid inspection type"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date"
					},
					"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,
						"description": "Optional\nEach value must be a valid inspection category"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 106 characters. Only non-compliances whose reference number contains this text are exported; the text is converted to upper case before it is matched"
					},
					"non_compliance_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances with one of the listed statuses are exported. Each value must be a valid non-compliance status"
					},
					"ha_response_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceResponseStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose highway authority response is one of the listed responses are exported. Each value must be a valid non-compliance response; no_response is accepted by validation but, unlike promoter_response_status, is not given any special meaning for this filter"
					},
					"promoter_response_status": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceResponseStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose promoter response is one of the listed responses are exported. Each value must be a valid non-compliance response; no_response matches non-compliances with no promoter response recorded"
					},
					"non_compliance_date_created_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Only non-compliances created on or after this date and time are exported; the value is compared exactly as sent"
					},
					"non_compliance_date_created_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust be a valid date. Must be on or after non_compliance_date_created_from (compared by UK calendar date; not checked if non_compliance_date_created_from is absent or invalid). Only non-compliances created on or before this date and time are exported; the value is compared exactly as sent and is not extended to the end of the day"
					},
					"most_recent_inspection_type": {
						"items": {
							"$ref": "#/components/schemas/InspectionType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose most recent inspection is of one of the listed types are exported. Each value must be a valid inspection type"
					},
					"most_recent_inspection_outcome": {
						"items": {
							"$ref": "#/components/schemas/InspectionOutcome"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose most recent inspection has one of the listed outcomes are exported. Each value must be a valid inspection outcome"
					},
					"most_recent_inspection_promoter_response_status": {
						"items": {
							"$ref": "#/components/schemas/PromoterInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose most recent inspection has one of the listed promoter response statuses are exported. Each value must be a valid promoter response status; no_response matches non-compliances whose most recent inspection has no promoter response (including those with no inspection)"
					},
					"most_recent_inspection_ha_response_status": {
						"items": {
							"$ref": "#/components/schemas/HAInspectionOutcomeStatusType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nOnly non-compliances whose most recent inspection has one of the listed highway authority response statuses are exported. Each value must be a valid highway authority response status; no_response matches non-compliances whose most recent inspection has no highway authority response (including those with no inspection)"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"MaterialClassificationClassification": {
				"enum": [
					"hazardous",
					"non_hazardous"
				],
				"type": "string"
			},
			"MaterialClassificationCSVExportRequest": {
				"properties": {
					"material_classification_classification": {
						"$ref": "#/components/schemas/MaterialClassificationClassification",
						"description": "Required\nMust be one of: hazardous, non_hazardous. Only material classifications with this classification are exported"
					},
					"material_classification_reference_number": {
						"type": "string",
						"description": "Optional\nMax length 50 characters. Only material classifications whose reference number contains this text (case-insensitive) are exported"
					},
					"street_descriptor": {
						"type": "string",
						"description": "Optional\nMax length 100 characters. Only material classifications whose street description matches the text are exported"
					},
					"usrn": {
						"type": "string",
						"description": "Optional\nMax length 100 characters. Only material classifications whose USRN contains this number are exported (leading zeros are ignored)"
					},
					"sample_date_from": {
						"type": "string",
						"format": "date-time",
						"description": "Optional\nMust be a valid date. Only material classifications with a sample date on or after this date are exported"
					},
					"sample_date_to": {
						"type": "string",
						"format": "date-time",
						"description": "Optional\nMust be a valid date. Must be on or after sample_date_from (compared as UK calendar dates; not checked if sample_date_from is missing or invalid). Only material classifications with a sample date on or before this date are exported"
					},
					"date_created_from": {
						"type": "string",
						"format": "date-time",
						"description": "Optional\nMust be a valid date. Only material classifications created on or after this date are exported"
					},
					"date_created_to": {
						"type": "string",
						"format": "date-time",
						"description": "Optional\nMust be a valid date. Must be on or after date_created_from (compared as UK calendar dates; not checked if date_created_from is missing or invalid). Only material classifications created on or before this date are exported"
					},
					"export_description": {
						"type": "string",
						"description": "Optional\nMax length 50 characters. A free-text description stored with the export"
					}
				},
				"required": [
					"material_classification_classification"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PbiSampleInspectionTargetCSVExportRequest": {
				"description": "date_from (Required): must be the first day of a calendar quarter: 1 January, 1 April, 1 July or 1 October (UK date). Only quarters that start on or after this date are exported.\ndate_to (Required): must be the last day of a calendar quarter: 31 March, 30 June, 30 September or 31 December (UK date). Must be on or after date_from and in the same financial year (1 April to 31 March) as date_from. Only quarters that end on or before this date are exported.",
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose permit reference number contains this text are exported (the text is converted to upper case before matching)"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose permit reference number contains this text are exported (the text is converted to upper case before matching). Note that this is matched against the permit reference number, not the works reference number"
					},
					"work_start_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose permit start date is on or after this date are exported"
					},
					"work_start_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided work_start_date_from (compared by calendar date in UK time; not checked if work_start_date_from is not supplied).\nOnly permits whose permit start date is on or before this date are exported"
					},
					"work_end_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits whose permit end date is on or after this date are exported"
					},
					"work_end_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided work_end_date_from (compared by calendar date in UK time; not checked if work_end_date_from is not supplied).\nOnly permits whose permit end date is on or before this date are exported"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly permits created on or after this date and time are exported"
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided start_date_created (compared by calendar date in UK time; not checked if start_date_created is not supplied).\nOnly permits created on or before this date and time are exported"
					},
					"work_status": {
						"items": {
							"$ref": "#/components/schemas/WorkStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work status. Only permits whose works have one of the given statuses are exported"
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work category. Only permits whose current version has one of the given work categories are exported"
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only permits whose current version has a high impact traffic management type (road closure, contra-flow, lane closure, convoy workings, multi-way signals or two-way signals) are exported. When false, only permits without one are exported. When not provided, no filter is applied"
					},
					"promoter_organisation_name": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose promoter organisation name contains this text (case-insensitive) are exported"
					},
					"ha_organisation_name": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 100 characters. Only permits whose highway authority organisation name contains this text (case-insensitive) are exported"
					}
				},
				"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"
					},
					"include_additional_orgs": {
						"type": "boolean",
						"nullable": true,
						"description": "Defaults to true. When false, only the user's primary organisation is used."
					},
					"organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"change_request_status": {
						"items": {
							"$ref": "#/components/schemas/ChangeRequestStatus"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid change request status. Only change requests with one of the given statuses are exported"
					},
					"change_request_type": {
						"items": {
							"$ref": "#/components/schemas/ChangeRequestType"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid change request type. Only change requests of one of the given types are exported"
					},
					"work_category": {
						"items": {
							"$ref": "#/components/schemas/WorkCategory"
						},
						"type": "array",
						"nullable": true,
						"description": "Optional\nEach value must be a valid work category. Only change requests whose original permit has one of the given work categories are exported"
					},
					"start_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly change requests created on or after this date and time are exported"
					},
					"end_date_created": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided start_date_created (compared by UK calendar day; not checked when start_date_created is not provided).\nOnly change requests created on or before this date and time are exported"
					},
					"is_traffic_sensitive": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only change requests whose original permit is traffic sensitive are exported. When false or not provided, no filter is applied"
					},
					"is_high_impact_traffic_management": {
						"type": "boolean",
						"nullable": true,
						"description": "Optional\nWhen true, only change requests whose original permit has a high impact traffic management type are exported. When false, only those without one are exported. When not provided, no filter is applied"
					},
					"status_update_date_from": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nOnly change requests whose status last changed on or after this date and time are exported"
					},
					"status_update_date_to": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Optional\nMust occur on or after the provided status_update_date_from (compared by UK calendar day; not checked when status_update_date_from is not provided).\nOnly change requests whose status last changed on or before this date and time are exported"
					},
					"change_request_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Optional\nMax length 105 characters. Matches change requests whose reference number contains this text (the text is converted to upper case before matching)"
					}
				},
				"type": "object",
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"token": {
				"type": "apiKey",
				"name": "token",
				"in": "header"
			}
		}
	},
	"info": {
		"title": "Street Manager Data Export API Stable",
		"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": "Requests an asynchronous CSV export of Section 81s and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only Section 81s on works the user's role and organisation allow them to see: Planners and Contractors are limited to works in their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to works on their own organisation's highway and, unless include_additional_orgs is false, its additional linked organisations. The geographical area filter is only applied for Highway Authority users.\n\nSee API specification Resource Guide > Data Export API > Generate Section 81s CSV for more information",
				"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": "Requests an asynchronous CSV export of registered reinstatements and returns the export id (csv_id); the file is generated in the background and downloaded with GET csv/{csvId} once ready.\n\nAccess: authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Contractors must provide a swa_code (400 if missing) for an organisation they have a contract with that is not suspended or disabled (401 otherwise).\nBusiness constraints: planners and contractors are limited to reinstatements on works on workstreams assigned to them, and contractors to the promoter organisation identified by swa_code; highway authority users get reinstatements for their own and linked organisations (unless include_additional_orgs is false), optionally narrowed by geographical areas, which must exist for them (404) and contain no more than the configured maximum number of USRNs in total (default 60,000) (412); only the configured number of queued or in-progress exports is allowed per user (default 1) (412).\n\nSee API specification Resource Guide > Data Export API > Generate Reinstatements CSV for more information",
				"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": "Requests an asynchronous CSV export of expiring interim reinstatements (the active, interim reinstatement on each site that is not subsumed) and returns the export id (csv_id); the file is generated in the background and downloaded with GET csv/{csvId} once ready.\n\nAccess: authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Contractors must provide a swa_code (400 if missing) for an organisation they have a contract with that is not suspended or disabled (401 otherwise).\nBusiness constraints: planners and contractors are limited to reinstatements on works on workstreams assigned to them, and contractors to the promoter organisation identified by swa_code; highway authority users get reinstatements for their own and linked organisations (unless include_additional_orgs is false), optionally narrowed by geographical areas, which must exist for them (404) and contain no more than the configured maximum number of USRNs in total (default 60,000) (412); only the configured number of queued or in-progress exports is allowed per user (default 1) (412).\n\nSee API specification Resource Guide > Data Export API > Generate Expiring Interim Reinstatements CSV for more information",
				"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": "Requests an asynchronous CSV export of fixed penalty notices (FPNs) and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user (401 otherwise). Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only FPNs on works the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate FPNs CSV for more information",
				"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": "Requests an asynchronous CSV export of chargeable fee transactions (permit granted, permit alteration granted, work category changed, PAA progressed to PA) and returns the export id (csv_id), which is used to download the CSV once it has been generated.\n\nAccess: authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Contractors must supply a swa_code for a promoter organisation they have a contract with; otherwise the request is rejected (400 when no swa_code is supplied, 401 when it is not a valid contracted organisation).\nBusiness constraints: a user can have only one queued or in-progress CSV export at a time (412); when fee_report_format is single_org_one_csv, swa_code_filter must be the reference of an existing organisation (412). Planners and contractors only receive fees for workstreams they are assigned to and for their own (or, for contractors, the swa_code) organisation; highway authority users receive fees for their accessible organisations. all_orgs_multiple_csvs produces a zip file with one CSV per organisation, other formats produce a single CSV.\n\nSee API specification Resource Guide > Data Export API > Generate Fees CSV for more information",
				"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": "Requests an asynchronous CSV export of permits and returns the id of the export (csv_id); the CSV file is generated in the background and downloaded with GET csv/{csvId} once it is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Access is refused (401) when the token is invalid, the user's organisation is suspended or disabled, or a contractor's organisation has no active contracting organisation. A contractor must supply the swa_code of an organisation it has a contract with that is not suspended or disabled, otherwise access is refused (401); a contractor who omits swa_code is rejected (400).\nBusiness constraints: The export is scoped to the caller. Planners and contractors only receive permits on workstreams assigned to them, and contractors only those of the promoter organisation identified by swa_code. Highway authority users only receive permits for their own organisation, plus any linked organisations unless include_additional_orgs is false, and may restrict the export to geographical areas that belong to those organisations (404 if any is not found). A user may only have one queued or in-progress CSV export at a time (412) and the selected geographical areas may not contain more than 60000 USRNs in total (412); both limits are configurable.\n\nSee API specification Resource Guide > Data Export API > Generate Permits CSV for more information",
				"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": "Requests an asynchronous CSV export of permits that have an excavation but no reinstatement registered yet, and returns the id of the export (csv_id); the CSV file is generated in the background and downloaded with GET csv/{csvId} once it is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Access is refused (401) when the token is invalid, the user's organisation is suspended or disabled, or a contractor's organisation has no active contracting organisation. A contractor must supply the swa_code of an organisation it has a contract with that is not suspended or disabled, otherwise access is refused (401); a contractor who omits swa_code is rejected (400).\nBusiness constraints: At least one of registration_due_date_from and registration_due_date_to must be provided, and at least one of them must be today (400). The export is scoped to the caller. Planners and contractors only receive permits on workstreams assigned to them, and contractors only those of the promoter organisation identified by swa_code. Highway authority users only receive permits for their own organisation, plus any linked organisations unless include_additional_orgs is false, and may restrict the export to geographical areas that belong to those organisations (404 if any is not found). A user may only have one queued or in-progress CSV export at a time (412) and the selected geographical areas may not contain more than 60000 USRNs in total (412); both limits are configurable.\n\nSee API specification Resource Guide > Data Export API > Generate Reinstatements due CSV for more information",
				"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": "Requests an asynchronous CSV export of inspections and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only inspections on works the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate Inspections CSV for more information",
				"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": "Requests an asynchronous CSV export of forward plans and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user (401 otherwise). Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only forward plans the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate Forward plans CSV for more information",
				"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": "Requests an asynchronous CSV export of permit alterations (change requests) and returns the export id (csv_id); the file is generated in the background and downloaded with GET csv/{csvId} once ready.\n\nAccess: authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Contractors must provide a swa_code (400 if missing) for an organisation they have a contract with that is not suspended or disabled (401 otherwise).\nBusiness constraints: planners and contractors are limited to alterations on workstreams assigned to them, and contractors to the promoter organisation identified by swa_code; highway authority users get alterations for their own and linked organisations (unless include_additional_orgs is false), optionally narrowed by geographical areas, which must exist for them (404) and contain no more than the configured maximum number of USRNs in total (default 60,000) (412); only the configured number of queued or in-progress exports is allowed per user (default 1) (412).\n\nSee API specification Resource Guide > Data Export API > Generate Permit alterations CSV for more information",
				"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": "Requests an asynchronous CSV export of works comments and returns the export id used to download the CSV once it has been generated.\n\nAccess: authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user.\nContractors must provide a swa_code for an organisation they have an active contract with.\nBusiness constraints: a user can have no more than the configured number of queued or in progress CSV exports at a time (one by default);\ngeographical areas must belong to the user's accessible organisations and together contain no more than the configured number of USRNs (60000 by default);\nexports are limited to the user's organisation, workstreams and contracting organisation, and internal comments from other organisations are excluded.\n\nSee API specification Resource Guide > Data Export API > Generate Comments CSV for more information",
				"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": "Requests an asynchronous CSV export of Section 58s and returns the export id (csv_id); the CSV itself is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Contractors must supply a swa_code for an organisation they have an active contract with.\nBusiness constraints: A user may have only a limited number of queued or in progress exports at once (default 1); any geographical_area_reference_number values must all exist for the user's accessible organisations and together contain no more than the maximum number of USRNs (default 60000). Highway Authority users export only Section 58s raised by their own organisation (plus linked additional organisations unless include_additional_orgs is false); Planner and Contractor users are not restricted by organisation.\n\nSee API specification Resource Guide > Data Export API > Generate Section 58s CSV for more information",
				"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": "Requests an asynchronous CSV export of Section 74 overrun warnings and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only Section 74s on works the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations. Draft and final invoice columns are populated only when the exporting user holds the Street Works Admin role (for contractors, for the organisation selected by swa_code) and the Section 74 has reached the matching status.\n\nSee API specification Resource Guide > Data Export API > Generate Section 74s CSV for more information",
				"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": "Requests an asynchronous CSV export of issued PBI sample inspections that are due, and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have the following role: HighwayAuthority (Planner and Contractor users are rejected with 401), and must be an API user. Suspended or disabled organisations are rejected (401).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only issued sample inspections on works of the user's organisation and, unless include_additional_orgs is false, its additional linked organisations, where the works have an active permit. A swa_code is accepted but has no effect.\n\nSee API specification Resource Guide > Data Export API > Generate PBI Sample Inspections Due CSV for more information",
				"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": "Requests an asynchronous CSV export of private street notices and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only private street notices the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate Private Street Notices CSV for more information",
				"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": "Requests an asynchronous CSV export of reinspections and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only reinspections on works the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate Reinspections CSV for more information",
				"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": "Requests an asynchronous CSV export of non-compliances and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). A contractor must supply a swa_code of an active organisation they have a contract with (400 if omitted, 401 if not allowed).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only non-compliances on works the user's role and organisation allow them to see: Planners and Contractors are limited to their own workstreams (contractors also to the promoter selected by swa_code), Highway Authority users to their own organisation and, unless include_additional_orgs is false, its additional linked organisations.\n\nSee API specification Resource Guide > Data Export API > Generate Non Compliances CSV for more information",
				"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": "Requests an asynchronous CSV export of material classifications and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). This request has no swa_code, so contractors do not need to supply one.\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). material_classification_classification is required. The export is not limited by the user's role or organisation: it contains every material classification that matches the filters, newest created first. The request has no geographical area or include_additional_orgs fields.\n\nSee API specification Resource Guide > Data Export API > Generate Material Classification CSV for more information",
				"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": "Requests an asynchronous CSV export of performance based inspection (PBI) sample inspection targets and progress, one row per promoter, highway authority and financial quarter, and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: Admin or StreetWorksAdmin (not Planner, Contractor or HighwayAuthority), and must be an API user. Suspended or disabled organisations are rejected (401), as are contractors with no active contracting organisation (401). The user's organisation must be a Promoter or Highway Authority organisation (412 otherwise). This request has no swa_code, so contractors do not need to supply one.\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). date_from and date_to are required and must describe whole financial quarters within one financial year. The export contains only targets where the user's organisation is the promoter or the highway authority, for the quarters that start on or after date_from and end on or before date_to. The request has no geographical area, include_additional_orgs or other filter fields. Downloading the file with GET csv/{csvId} is limited to the user who requested it, and that route accepts the roles Planner, Contractor, HighwayAuthority and Admin (it does not list StreetWorksAdmin).\n\nSee API specification Resource Guide > Data Export API > Generate PBI sample inspection targets CSV for more information",
				"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": "Requests an asynchronous CSV export of interested party permits and returns the id of the export (csv_id); the CSV is generated in the background and downloaded later with GET csv/{csvId} once its status is ready.\n\nAccess: Authenticated user must have one of the following roles: HighwayAuthority, and must be an API user. Suspended or disabled organisations are rejected (401).\nBusiness constraints: Each user can have only a limited number of queued or in-progress exports at once (default 1; 412 if exceeded). Any geographical_area_reference_number must belong to an organisation the user can access (404 if not found) and together may cover at most 60,000 USRNs by default (412 if exceeded). The export contains only permits on works for which the user's organisation (and, for Highway Authority users unless include_additional_orgs is false, its additional linked organisations) is recorded as an interested party. Geographical areas only narrow the export for Highway Authority users.\n\nSee API specification Resource Guide > Data Export API > Generate Interested party permits CSV for more information",
				"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": "Requests an asynchronous CSV export of change requests and returns the id of the export (csv_id); the CSV file is generated in the background and downloaded with GET csv/{csvId} once it is ready.\n\nAccess: Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, and must be an API user. Access is refused (401) when the token is invalid, the user's organisation is suspended or disabled, or a contractor's organisation has no active contracting organisation. A contractor must supply the swa_code of an organisation it has a contract with that is not suspended or disabled, otherwise access is refused (401); a contractor who omits swa_code is rejected (400).\nBusiness constraints: The export is scoped to the caller. Planners and contractors only receive change requests on workstreams assigned to them, and contractors only those of the organisation identified by swa_code. Highway authority users only receive change requests for their own organisation, plus any linked organisations unless include_additional_orgs is false, and may restrict the export to geographical areas that belong to those organisations (404 if any is not found). A user may only have one queued or in-progress CSV export at a time (412) and the selected geographical areas may not contain more than 60000 USRNs in total (412); both limits are configurable.\n\nSee API specification Resource Guide > Data Export API > Generate Change requests CSV for more information",
				"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"
						}
					}
				]
			}
		}
	}
}