{
	"openapi": "3.0.0",
	"components": {
		"examples": {},
		"headers": {},
		"parameters": {},
		"requestBodies": {},
		"responses": {},
		"schemas": {
			"PermitConditionTypeResponse": {
				"enum": [
					"NCT01a",
					"NCT01b",
					"NCT02a",
					"NCT02b",
					"NCT04a",
					"NCT04b",
					"NCT05a",
					"NCT06a",
					"NCT07a",
					"NCT08a",
					"NCT08b",
					"NCT09a",
					"NCT09b",
					"NCT09c",
					"NCT10a",
					"NCT11a",
					"NCT11b",
					"NCT12a",
					"NCT09d",
					"NCT03",
					"upcoming_enum"
				],
				"type": "string"
			},
			"PermitConditionResponse": {
				"properties": {
					"condition": {
						"$ref": "#/components/schemas/PermitConditionTypeResponse"
					},
					"condition_string": {
						"type": "string"
					},
					"comment": {
						"type": "string",
						"nullable": true,
						"description": "Max length 1500 characters"
					}
				},
				"required": [
					"condition",
					"condition_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReasonForRefusalResponse": {
				"enum": [
					"RC10",
					"RC11",
					"RC12",
					"RC20",
					"RC21",
					"RC22",
					"RC23",
					"RC30",
					"RC31",
					"RC32",
					"RC33",
					"RC40",
					"RC41",
					"RC42",
					"RC43",
					"RC44",
					"RC50",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ActivityTypeResponse": {
				"enum": [
					"highway_improvement_works",
					"highway_repair_and_maintenance_works",
					"utility_asset_works",
					"utility_repair_and_maintenance_works",
					"diversionary_works",
					"disconnection_or_alteration_of_supply",
					"permanent_reinstatement",
					"remedial_works",
					"section_58",
					"section_50",
					"core_sampling",
					"statutory_infrastructure_works",
					"works_for_rail_purposes",
					"works_for_road_purposes",
					"new_service_connection",
					"optional_permit_no_fee",
					"upcoming_enum"
				],
				"type": "string"
			},
			"TrafficManagementTypeResponse": {
				"enum": [
					"road_closure",
					"contra_flow",
					"lane_closure",
					"multi_way_signals",
					"two_way_signals",
					"convoy_workings",
					"stop_go_boards",
					"priority_working",
					"give_and_take",
					"some_carriageway_incursion",
					"no_carriageway_incursion",
					"temp_obstruction_15_minute_delay",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ApplicationTypeResponse": {
				"enum": [
					"permit",
					"notice",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CollaborationTypeResponse": {
				"enum": [
					"trench_sharing_primary_promoter",
					"trench_sharing_secondary_promoter",
					"sharing_traffic_management_only",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LocationTypeResponse": {
				"enum": [
					"footway",
					"carriageway",
					"verge",
					"cycleway",
					"footpath",
					"parking_place",
					"bus_stop_or_stand",
					"cycle_hire_docking_station",
					"taxi_rank",
					"upcoming_enum"
				],
				"type": "string"
			},
			"AssessmentStatusResponse": {
				"enum": [
					"granted",
					"granted_auto",
					"refused",
					"refused_auto",
					"permit_modification_request",
					"revoked",
					"upcoming_enum"
				],
				"type": "string"
			},
			"FileSummaryResponse": {
				"properties": {
					"file_id": {
						"type": "number",
						"format": "double"
					},
					"name": {
						"type": "string"
					}
				},
				"required": [
					"file_id",
					"name"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ASDCodeResponse": {
				"enum": [
					1,
					2,
					3,
					6,
					8,
					9,
					10,
					12,
					13,
					16,
					17,
					18,
					19,
					20,
					21,
					22,
					23,
					24,
					25,
					26,
					27,
					28,
					29,
					30,
					999
				],
				"type": "number"
			},
			"ASDPeriodicityCodeResponse": {
				"enum": [
					1,
					2,
					3,
					7,
					8,
					9,
					10,
					11,
					12,
					13,
					14,
					15,
					16,
					999
				],
				"type": "number"
			},
			"PermitASDResponse": {
				"properties": {
					"special_desig_location_text": {
						"type": "string",
						"nullable": true,
						"description": "Max length 255 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 300 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_start_time": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 2400 inclusive\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_end_time": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 2400 inclusive\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"street_special_desig_code": {
						"$ref": "#/components/schemas/ASDCodeResponse"
					},
					"street_special_desig_code_string": {
						"type": "string"
					},
					"special_desig_periodicity_code": {
						"allOf": [
							{
								"$ref": "#/components/schemas/ASDPeriodicityCodeResponse"
							}
						],
						"nullable": true
					},
					"special_desig_periodicity_code_string": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"street_special_desig_code",
					"street_special_desig_code_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AlterationStatusResponse": {
				"enum": [
					"submitted",
					"granted",
					"granted_with_duration_challenge",
					"refused",
					"deemed",
					"cancelled",
					"revoked",
					"auto_applied",
					"upcoming_enum"
				],
				"type": "string"
			},
			"AlterationTypeResponse": {
				"enum": [
					"PROMOTER_IMPOSED_CHANGE",
					"PROMOTER_CHANGE_REQUEST",
					"HA_CHANGE_REQUEST",
					"HA_IMPOSED_CHANGE",
					"WORK_EXTENSION",
					"DURATION_CHALLENGE",
					"MODIFIED_PERMIT",
					"upcoming_enum"
				],
				"type": "string"
			},
			"PermitAlterationSummaryResponse": {
				"properties": {
					"permit_alteration_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"deadline_date": {
						"type": "string",
						"format": "date-time"
					},
					"alteration_status": {
						"$ref": "#/components/schemas/AlterationStatusResponse"
					},
					"alteration_status_string": {
						"type": "string"
					},
					"alteration_type": {
						"$ref": "#/components/schemas/AlterationTypeResponse"
					},
					"alteration_type_string": {
						"type": "string"
					}
				},
				"required": [
					"permit_alteration_reference_number",
					"date_created",
					"deadline_date",
					"alteration_status",
					"alteration_status_string",
					"alteration_type",
					"alteration_type_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkTypeResponse": {
				"enum": [
					"planned",
					"immediate",
					"hs2_highway_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CloseFootwayResponse": {
				"enum": [
					"yes_provide_pedestrian_walkway",
					"yes_provide_alternative_route",
					"no",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LaneRentalAssessmentOutcomeResponse": {
				"enum": [
					"chargeable",
					"potentially_chargeable",
					"charges_waived",
					"exempt",
					"charges_not_applicable",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LaneRentalAssessmentChargeBandResponse": {
				"enum": [
					"charge_band_1",
					"charge_band_2",
					"charge_band_3",
					"charge_band_4",
					"charge_band_5",
					"upcoming_enum"
				],
				"type": "string"
			},
			"WorkStatusResponse": {
				"enum": [
					"planned",
					"in_progress",
					"completed",
					"cancelled",
					"unattributable",
					"historical",
					"non_notifiable",
					"section_81",
					"upcoming_enum"
				],
				"type": "string"
			},
			"HS2HighwayExemptionResponse": {
				"enum": [
					"works_to_a_bridge",
					"alteration_or_disturbance_to_apparatus",
					"depositing_soil_or_materials",
					"erection_of_scaffolding",
					"none_applicable",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LinkedSection81": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"section_81_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"section_81_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DurationChallengeReviewStatusResponse": {
				"enum": [
					"duration_challenge_accepted",
					"duration_challenge_not_accepted",
					"upcoming_enum"
				],
				"type": "string"
			},
			"DurationChallengeNonAcceptanceResponseStatusResponse": {
				"enum": [
					"reasonable_period_end_date_changed",
					"reasonable_period_end_date_not_changed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CloseFootpathResponse": {
				"enum": [
					"yes_discussed_with_ha",
					"no",
					"upcoming_enum"
				],
				"type": "string"
			},
			"AncillaryInfoTypeResponse": {
				"enum": [
					"portable_traffic_signals_or_other_traffic_controls",
					"site_welfare_facilities",
					"site_compound_or_material_storage",
					"site_compound_for_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"AncillaryInfoStatusResponse": {
				"enum": [
					"added",
					"removed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"AncillaryInfoSummaryResponse": {
				"properties": {
					"ancillary_info_reference_number": {
						"type": "string"
					},
					"location_description": {
						"type": "string",
						"nullable": true
					},
					"ancillary_info_type": {
						"$ref": "#/components/schemas/AncillaryInfoTypeResponse"
					},
					"ancillary_info_status": {
						"$ref": "#/components/schemas/AncillaryInfoStatusResponse"
					},
					"ancillary_info_type_string": {
						"type": "string"
					},
					"ancillary_info_status_string": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_removed": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ancillary_info_description": {
						"type": "string"
					},
					"ancillary_info_removal_reason": {
						"type": "string",
						"nullable": true
					},
					"ancillary_info_coordinates": {
						"items": {},
						"type": "array"
					},
					"usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array"
					}
				},
				"required": [
					"ancillary_info_reference_number",
					"ancillary_info_type",
					"ancillary_info_status",
					"ancillary_info_type_string",
					"ancillary_info_status_string",
					"date_created",
					"ancillary_info_description",
					"ancillary_info_coordinates",
					"usrns"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitCancellationReasonResponse": {
				"enum": [
					"admin_error",
					"customer_reasons",
					"requested_by_highway_authority",
					"private_works",
					"clash_of_works_on_site",
					"traffic_management_issues",
					"parking_issues",
					"no_staff_or_resource",
					"higher_priority_works",
					"weather",
					"further_action_required",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InterestedParty": {
				"properties": {
					"name": {
						"type": "string"
					},
					"swa_code": {
						"type": "string"
					}
				},
				"required": [
					"name",
					"swa_code"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitStatusResponse": {
				"enum": [
					"submitted",
					"granted",
					"permit_modification_request",
					"refused",
					"closed",
					"cancelled",
					"revoked",
					"progressed",
					"under_assessment",
					"upcoming_enum"
				],
				"type": "string"
			},
			"WorkCategoryResponseEnum": {
				"enum": [
					"minor",
					"standard",
					"major",
					"immediate_urgent",
					"immediate_emergency",
					"paa",
					"hs2_highway",
					"upcoming_enum"
				],
				"type": "string"
			},
			"PermitResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"actual_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"actual_stop_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"permit_status": {
						"$ref": "#/components/schemas/PermitStatusResponse"
					},
					"permit_status_string": {
						"type": "string"
					},
					"work_category": {
						"$ref": "#/components/schemas/WorkCategoryResponseEnum"
					},
					"work_category_string": {
						"type": "string"
					},
					"work_reference_number": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"promoter_swa_code": {
						"type": "string"
					},
					"promoter_contact_details": {
						"type": "string"
					},
					"primary_contact": {
						"type": "string",
						"nullable": true
					},
					"primary_contact_number": {
						"type": "string",
						"nullable": true
					},
					"primary_contact_email": {
						"type": "string",
						"nullable": true
					},
					"secondary_contact": {
						"type": "string"
					},
					"secondary_contact_number": {
						"type": "string"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"reasonable_period_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"calendar_day_duration": {
						"type": "number",
						"format": "double"
					},
					"working_day_duration": {
						"type": "number",
						"format": "double"
					},
					"description_of_work": {
						"type": "string"
					},
					"excavation": {
						"type": "boolean"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true
					},
					"traffic_management_plan": {
						"type": "boolean"
					},
					"lane_rental_applicable": {
						"type": "boolean"
					},
					"permit_conditions": {
						"items": {
							"$ref": "#/components/schemas/PermitConditionResponse"
						},
						"type": "array",
						"nullable": true
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"highway_authority": {
						"type": "string"
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"road_category": {
						"type": "number",
						"format": "double"
					},
					"works_location_description": {
						"type": "string"
					},
					"works_coordinates": {},
					"collaborative_working": {
						"type": "boolean"
					},
					"collaboration_details": {
						"type": "string",
						"nullable": true
					},
					"collaborative_works": {
						"type": "string",
						"nullable": true
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_modified": {
						"type": "string",
						"format": "date-time"
					},
					"deadline_date": {
						"type": "string",
						"format": "date-time"
					},
					"assessment_comments": {
						"type": "string",
						"nullable": true
					},
					"reasons_for_refusal": {
						"items": {
							"$ref": "#/components/schemas/ReasonForRefusalResponse"
						},
						"type": "array",
						"nullable": true
					},
					"reasons_for_refusal_string": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true
					},
					"activity_type": {
						"$ref": "#/components/schemas/ActivityTypeResponse"
					},
					"activity_type_string": {
						"type": "string"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementTypeResponse"
					},
					"traffic_management_type_string": {
						"type": "string"
					},
					"application_type": {
						"$ref": "#/components/schemas/ApplicationTypeResponse"
					},
					"application_type_string": {
						"type": "string"
					},
					"collaboration_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/CollaborationTypeResponse"
							}
						],
						"nullable": true
					},
					"collaboration_type_string": {
						"type": "string",
						"nullable": true
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"assessment_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/AssessmentStatusResponse"
							}
						],
						"nullable": true
					},
					"assessment_status_string": {
						"type": "string",
						"nullable": true
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"permit_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASDResponse"
						},
						"type": "array"
					},
					"permit_not_selected_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASDResponse"
						},
						"type": "array"
					},
					"assessment_discount": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"assessment_discount_reason": {
						"type": "string",
						"nullable": true
					},
					"is_ttro_required": {
						"type": "boolean",
						"nullable": true
					},
					"immediate_risk": {
						"type": "boolean",
						"nullable": true
					},
					"is_early_start": {
						"type": "boolean"
					},
					"is_deemed": {
						"type": "boolean"
					},
					"early_start_pre_approval": {
						"type": "boolean",
						"nullable": true
					},
					"pre_approval_details": {
						"type": "string",
						"nullable": true
					},
					"pre_approval_authoriser": {
						"type": "string",
						"nullable": true
					},
					"early_start_reason": {
						"type": "string",
						"nullable": true
					},
					"additional_info": {
						"type": "string",
						"nullable": true
					},
					"permit_alterations": {
						"items": {
							"$ref": "#/components/schemas/PermitAlterationSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"work_type": {
						"$ref": "#/components/schemas/WorkTypeResponse"
					},
					"work_type_string": {
						"type": "string"
					},
					"revoke_reason": {
						"type": "string",
						"nullable": true
					},
					"sliding_end_date_candidate": {
						"type": "boolean"
					},
					"validity_period_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"final_reinstatement": {
						"type": "boolean"
					},
					"workstream_prefix": {
						"type": "string"
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootwayResponse"
					},
					"close_footway_string": {
						"type": "string"
					},
					"lane_rental_assessment_outcome": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LaneRentalAssessmentOutcomeResponse"
							}
						],
						"nullable": true
					},
					"lane_rental_assessment_outcome_string": {
						"type": "string",
						"nullable": true
					},
					"lane_rental_assessment_additional_details": {
						"type": "string",
						"nullable": true
					},
					"lane_rental_assessment_charge_band": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LaneRentalAssessmentChargeBandResponse"
							}
						],
						"nullable": true
					},
					"lane_rental_assessment_charge_band_string": {
						"type": "string",
						"nullable": true
					},
					"lane_rental_assessment_chargeable_days": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"lane_rental_assessment_charges_agreed": {
						"type": "boolean",
						"nullable": true
					},
					"is_lane_rental": {
						"type": "boolean"
					},
					"pending_change_details": {
						"type": "string",
						"nullable": true
					},
					"work_status": {
						"$ref": "#/components/schemas/WorkStatusResponse"
					},
					"work_status_string": {
						"type": "string"
					},
					"hs2_in_act_limits": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"hs2_highway_exemption": {
						"allOf": [
							{
								"$ref": "#/components/schemas/HS2HighwayExemptionResponse"
							}
						],
						"nullable": true
					},
					"hs2_highway_exemption_string": {
						"type": "string",
						"nullable": true
					},
					"hs2_is_consultation": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_is_consent": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_highway_emails": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true
					},
					"hs2_acknowledged": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_acknowledged_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"additional_contact": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true
					},
					"ever_modification_requested": {
						"type": "boolean"
					},
					"is_duration_challenged": {
						"type": "boolean",
						"nullable": true
					},
					"is_covid_19_response": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_additional_usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true
					},
					"excavation_carried_out": {
						"type": "boolean"
					},
					"linked_section_81": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LinkedSection81"
							}
						],
						"nullable": true
					},
					"duration_challenge_review_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DurationChallengeReviewStatusResponse"
							}
						],
						"nullable": true
					},
					"duration_challenge_review_status_string": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_reason_for_non_acceptance": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_review_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DurationChallengeNonAcceptanceResponseStatusResponse"
							}
						],
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_status_string": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_details": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_new_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_old_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_follow_up_review_complete": {
						"type": "boolean",
						"nullable": true
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true
					},
					"current_traffic_management_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TrafficManagementTypeResponse"
							}
						],
						"nullable": true
					},
					"current_traffic_management_type_string": {
						"type": "string",
						"nullable": true
					},
					"current_traffic_management_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"current_traffic_management_emergency_contact_name": {
						"type": "string",
						"nullable": true
					},
					"current_traffic_management_emergency_contact_number": {
						"type": "string",
						"nullable": true
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpathResponse"
					},
					"close_footpath_string": {
						"type": "string"
					},
					"ancillary_informations": {
						"items": {
							"$ref": "#/components/schemas/AncillaryInfoSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"street_line": {},
					"reinstatement_registration_due_date": {
						"type": "string",
						"format": "date-time"
					},
					"usrn_contains_hazardous_material": {
						"type": "boolean",
						"nullable": true
					},
					"permit_cancellation_reason": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitCancellationReasonResponse"
							}
						],
						"nullable": true
					},
					"permit_cancellation_reason_string": {
						"type": "string",
						"nullable": true
					},
					"permit_cancellation_reason_other": {
						"type": "string",
						"nullable": true
					},
					"interested_parties": {
						"items": {
							"$ref": "#/components/schemas/InterestedParty"
						},
						"type": "array",
						"nullable": true
					}
				},
				"required": [
					"permit_reference_number",
					"proposed_start_date",
					"proposed_end_date",
					"permit_status",
					"permit_status_string",
					"work_category",
					"work_category_string",
					"work_reference_number",
					"promoter_organisation",
					"promoter_swa_code",
					"promoter_contact_details",
					"secondary_contact",
					"secondary_contact_number",
					"reasonable_period_end_date",
					"calendar_day_duration",
					"working_day_duration",
					"description_of_work",
					"excavation",
					"traffic_management_plan",
					"lane_rental_applicable",
					"street_name",
					"usrn",
					"highway_authority",
					"highway_authority_swa_code",
					"road_category",
					"works_location_description",
					"works_coordinates",
					"collaborative_working",
					"date_created",
					"date_modified",
					"deadline_date",
					"activity_type",
					"activity_type_string",
					"traffic_management_type",
					"traffic_management_type_string",
					"application_type",
					"application_type_string",
					"location_types",
					"location_types_string",
					"permit_asds",
					"permit_not_selected_asds",
					"is_early_start",
					"is_deemed",
					"work_type",
					"work_type_string",
					"sliding_end_date_candidate",
					"validity_period_end_date",
					"final_reinstatement",
					"workstream_prefix",
					"close_footway",
					"close_footway_string",
					"is_lane_rental",
					"work_status",
					"work_status_string",
					"ever_modification_requested",
					"excavation_carried_out",
					"close_footpath",
					"close_footpath_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitCreateResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"permit_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HS2HighwayExemption": {
				"enum": [
					"works_to_a_bridge",
					"alteration_or_disturbance_to_apparatus",
					"depositing_soil_or_materials",
					"erection_of_scaffolding",
					"none_applicable"
				],
				"type": "string"
			},
			"PermitConditionType": {
				"enum": [
					"NCT01a",
					"NCT01b",
					"NCT02a",
					"NCT02b",
					"NCT04a",
					"NCT04b",
					"NCT05a",
					"NCT06a",
					"NCT07a",
					"NCT08a",
					"NCT08b",
					"NCT09a",
					"NCT09b",
					"NCT09c",
					"NCT10a",
					"NCT11a",
					"NCT11b",
					"NCT12a",
					"NCT09d",
					"NCT03"
				],
				"type": "string"
			},
			"PermitCondition": {
				"properties": {
					"condition": {
						"$ref": "#/components/schemas/PermitConditionType"
					},
					"comment": {
						"type": "string",
						"nullable": true,
						"description": "Max length 1500 characters"
					}
				},
				"required": [
					"condition"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ActivityType": {
				"enum": [
					"highway_improvement_works",
					"highway_repair_and_maintenance_works",
					"utility_asset_works",
					"utility_repair_and_maintenance_works",
					"diversionary_works",
					"disconnection_or_alteration_of_supply",
					"permanent_reinstatement",
					"remedial_works",
					"section_58",
					"section_50",
					"core_sampling",
					"statutory_infrastructure_works",
					"works_for_rail_purposes",
					"works_for_road_purposes",
					"new_service_connection",
					"optional_permit_no_fee"
				],
				"type": "string"
			},
			"TrafficManagementType": {
				"enum": [
					"road_closure",
					"contra_flow",
					"lane_closure",
					"multi_way_signals",
					"two_way_signals",
					"convoy_workings",
					"stop_go_boards",
					"priority_working",
					"give_and_take",
					"some_carriageway_incursion",
					"no_carriageway_incursion",
					"temp_obstruction_15_minute_delay"
				],
				"type": "string"
			},
			"ApplicationType": {
				"enum": [
					"permit",
					"notice"
				],
				"type": "string"
			},
			"CollaborationType": {
				"enum": [
					"trench_sharing_primary_promoter",
					"trench_sharing_secondary_promoter",
					"sharing_traffic_management_only",
					"other"
				],
				"type": "string"
			},
			"LocationType": {
				"enum": [
					"footway",
					"carriageway",
					"verge",
					"cycleway",
					"footpath",
					"parking_place",
					"bus_stop_or_stand",
					"cycle_hire_docking_station",
					"taxi_rank"
				],
				"type": "string"
			},
			"WorkType": {
				"enum": [
					"planned",
					"immediate",
					"hs2_highway_works"
				],
				"type": "string"
			},
			"CloseFootway": {
				"enum": [
					"yes_provide_pedestrian_walkway",
					"yes_provide_alternative_route",
					"no"
				],
				"type": "string"
			},
			"CloseFootpath": {
				"enum": [
					"yes_discussed_with_ha",
					"no"
				],
				"type": "string"
			},
			"ASDCode": {
				"enum": [
					1,
					2,
					3,
					6,
					8,
					9,
					10,
					12,
					13,
					16,
					17,
					18,
					19,
					20,
					21,
					22,
					23,
					24,
					25,
					26,
					27,
					28,
					29,
					30
				],
				"type": "number"
			},
			"ASDPeriodicityCode": {
				"enum": [
					1,
					2,
					3,
					7,
					8,
					9,
					10,
					11,
					12,
					13,
					14,
					15,
					16
				],
				"type": "number"
			},
			"PermitASD": {
				"properties": {
					"special_desig_location_text": {
						"type": "string",
						"nullable": true,
						"description": "Max length 255 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 300 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_start_time": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 2400 inclusive\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_end_time": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 2400 inclusive\nUse Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"street_special_desig_code": {
						"$ref": "#/components/schemas/ASDCode",
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					},
					"special_desig_periodicity_code": {
						"allOf": [
							{
								"$ref": "#/components/schemas/ASDPeriodicityCode"
							}
						],
						"nullable": true,
						"description": "Use Street Lookup API endpoint /nsg/streets to lookup this information"
					}
				},
				"required": [
					"street_special_desig_code"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"secondary_contact": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_number": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if work_type is immediate\nproposed_start_time is required if proposed_start_date is in the past"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time",
						"description": "proposed_end_date must be on or after proposed_start_date\nIf work_type = planned, the maximum date range between proposed_start_date and proposed_end_date is 5 years"
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "proposed_end_time is required if proposed_end_date is in the past\nproposed_end_time must be after the date and time for proposed_start_time"
					},
					"description_of_work": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"excavation": {
						"type": "boolean",
						"description": "Whether an excavation will be required"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"traffic_management_plan": {
						"type": "boolean"
					},
					"lane_rental_applicable": {
						"type": "boolean"
					},
					"permit_conditions": {
						"items": {
							"$ref": "#/components/schemas/PermitCondition"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"works_coordinates": {
						"nullable": true,
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"collaboration_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if collaborative_working = true\nMax length 500 characters"
					},
					"collaborative_works": {
						"type": "string",
						"nullable": true,
						"description": "Optional but only saved if collaborative_working = true\nMax length 500 characters\nWork Reference Number of collaborative works"
					},
					"activity_type": {
						"$ref": "#/components/schemas/ActivityType"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"application_type": {
						"$ref": "#/components/schemas/ApplicationType"
					},
					"collaboration_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/CollaborationType"
							}
						],
						"nullable": true,
						"description": "Required if collaborative_working = true"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"early_start_pre_approval": {
						"type": "boolean",
						"nullable": true,
						"description": "See business rules section 3.4.6 - Early start"
					},
					"pre_approval_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 500 characters"
					},
					"pre_approval_authoriser": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 100 characters"
					},
					"early_start_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = false\nMax length 500 characters"
					},
					"work_type": {
						"$ref": "#/components/schemas/WorkType"
					},
					"is_ttro_required": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is planned"
					},
					"immediate_risk": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is immediate"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootway"
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpath"
					},
					"permit_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASD"
						},
						"type": "array",
						"nullable": true
					},
					"additional_contact": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"hs2_highway_emails": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array Max length 2 items\nArray values must be valid email addresses\nArray values max length 100 characters"
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					},
					"workstream_prefix": {
						"type": "string",
						"nullable": true,
						"description": "Must consist of 3 positive whole numbers"
					},
					"hs2_in_act_limits": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if promoter_swa_code = '7374'"
					},
					"hs2_highway_exemption": {
						"allOf": [
							{
								"$ref": "#/components/schemas/HS2HighwayExemption"
							}
						],
						"nullable": true,
						"description": "Required if work_type = 'hs2_highway_works' and hs2_in_act_limits = true"
					},
					"hs2_additional_usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Array max length 10 items\nArray values must be valid USRNs"
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 106 characters\nCreated permit will be linked to an existing non-compliance with this reference number\nNon-compliance must not be resolved and must be associated with the same work"
					}
				},
				"required": [
					"secondary_contact",
					"secondary_contact_number",
					"proposed_start_date",
					"proposed_end_date",
					"description_of_work",
					"excavation",
					"traffic_management_plan",
					"lane_rental_applicable",
					"works_location_description",
					"collaborative_working",
					"activity_type",
					"traffic_management_type",
					"application_type",
					"location_types",
					"work_type",
					"close_footway",
					"close_footpath"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitStatus": {
				"enum": [
					"submitted",
					"granted",
					"permit_modification_request",
					"refused",
					"closed",
					"cancelled",
					"revoked",
					"progressed",
					"under_assessment"
				],
				"type": "string"
			},
			"PermitCancellationReason": {
				"enum": [
					"admin_error",
					"customer_reasons",
					"requested_by_highway_authority",
					"private_works",
					"clash_of_works_on_site",
					"traffic_management_issues",
					"parking_issues",
					"no_staff_or_resource",
					"higher_priority_works",
					"weather",
					"further_action_required",
					"other"
				],
				"type": "string"
			},
			"PermitStatusUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"permit_status": {
						"$ref": "#/components/schemas/PermitStatus",
						"description": "Can only be set to cancelled\nSee business rules section 3.4.9 - Cancelling PAA & PA\nSee business rules section 3.4.10 - PAA & PA statuses"
					},
					"additional_comments": {
						"type": "string",
						"nullable": true,
						"description": "Required if permit_status = refused\nMax length 500 characters"
					},
					"permit_cancellation_reason": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitCancellationReason"
							}
						],
						"nullable": true
					},
					"permit_cancellation_reason_other": {
						"type": "string",
						"nullable": true,
						"description": "Required if permit_cancellation_reason is other"
					}
				},
				"required": [
					"permit_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AssessmentStatus": {
				"enum": [
					"granted",
					"granted_auto",
					"refused",
					"refused_auto",
					"permit_modification_request",
					"revoked"
				],
				"type": "string"
			},
			"ReasonForRefusal": {
				"enum": [
					"RC10",
					"RC11",
					"RC12",
					"RC20",
					"RC21",
					"RC22",
					"RC23",
					"RC30",
					"RC31",
					"RC32",
					"RC33",
					"RC40",
					"RC41",
					"RC42",
					"RC43",
					"RC44",
					"RC50"
				],
				"type": "string"
			},
			"PermitAssessmentUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"assessment_status": {
						"$ref": "#/components/schemas/AssessmentStatus",
						"description": "Can only be set to granted, refused, permit_modification_requested or revoked\nSee business rules section 5 - Revoking a PA"
					},
					"additional_comments": {
						"type": "string",
						"nullable": true,
						"description": "Required if assessment_status = refused or is_duration_challenged = true\nMax length 1500 characters"
					},
					"reasons_for_refusal": {
						"items": {
							"$ref": "#/components/schemas/ReasonForRefusal"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique\nMust contain between 1 and 5 values\nRequired if assessment_status = refused"
					},
					"assessment_discount": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Required if assessment_status = granted and permit's work_category != hs2_highway\nIs whole number between 0 and 100 inclusive"
					},
					"revoke_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if assessment_status = revoked\nMax length 500 characters"
					},
					"pending_change_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if assessment_status = permit_modification_request\nMax length 500 characters"
					},
					"reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if is_duration_challenged = true\nMust be at least 2 working days from start date"
					},
					"is_duration_challenged": {
						"type": "boolean",
						"nullable": true
					}
				},
				"required": [
					"assessment_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitDiscountUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"assessment_discount": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 0 and 100 inclusive"
					},
					"assessment_discount_reason": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"assessment_discount"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LaneRentalAssessmentOutcome": {
				"enum": [
					"chargeable",
					"potentially_chargeable",
					"charges_waived",
					"exempt",
					"charges_not_applicable"
				],
				"type": "string"
			},
			"LaneRentalAssessmentChargeBand": {
				"enum": [
					"charge_band_1",
					"charge_band_2",
					"charge_band_3",
					"charge_band_4",
					"charge_band_5"
				],
				"type": "string"
			},
			"PermitLaneRentalAssessmentUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"outcome": {
						"$ref": "#/components/schemas/LaneRentalAssessmentOutcome"
					},
					"additional_details": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"charge_band": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LaneRentalAssessmentChargeBand"
							}
						],
						"nullable": true
					},
					"chargeable_days": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Whole number between 1 and 10000"
					},
					"charges_agreed": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if outcome = 'chargeable'"
					}
				},
				"required": [
					"outcome"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HS2AcknowledgementRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"hs2_acknowledged": {
						"type": "boolean",
						"description": "Must be true"
					}
				},
				"required": [
					"hs2_acknowledged"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DurationChallengeReviewStatus": {
				"enum": [
					"duration_challenge_accepted",
					"duration_challenge_not_accepted"
				],
				"type": "string"
			},
			"PermitDurationChallengeReviewRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"review_status": {
						"$ref": "#/components/schemas/DurationChallengeReviewStatus",
						"description": "Can only be set to duration_challenge_accepted or duration_challenge_not_accepted"
					},
					"reason_for_non_acceptance": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters\nRequired if review_status = duration_challenge_not_accepted"
					}
				},
				"required": [
					"review_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DurationChallengeNonAcceptanceResponseStatus": {
				"enum": [
					"reasonable_period_end_date_changed",
					"reasonable_period_end_date_not_changed"
				],
				"type": "string"
			},
			"PermitDurationChallengeNonAcceptanceResponseRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"non_acceptance_response_status": {
						"$ref": "#/components/schemas/DurationChallengeNonAcceptanceResponseStatus",
						"description": "Can only be set to reasonable_period_end_date_changed or reasonable_period_end_date_not_changed"
					},
					"new_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if non_acceptance_response_status = reasonable_period_end_date_changed"
					},
					"non_acceptance_response_details": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"non_acceptance_response_status",
					"non_acceptance_response_details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CurrentTrafficManagementTypeRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"current_traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"current_traffic_management_emergency_contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nMust be provided if current_traffic_management_type is multi_way_signals or two_way_signals"
					},
					"current_traffic_management_emergency_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nMust be provided if current_traffic_management_type is multi_way_signals or two_way_signals"
					}
				},
				"required": [
					"current_traffic_management_type"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DurationCalculationResponse": {
				"properties": {
					"calendar_days": {
						"type": "number",
						"format": "double"
					},
					"working_days": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"calendar_days",
					"working_days"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkCategoryResponse": {
				"properties": {
					"work_category": {
						"$ref": "#/components/schemas/WorkCategoryResponseEnum"
					},
					"work_category_string": {
						"type": "string"
					},
					"duration": {
						"$ref": "#/components/schemas/DurationCalculationResponse"
					},
					"validity_period_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"is_early_start": {
						"type": "boolean"
					}
				},
				"required": [
					"work_category",
					"work_category_string",
					"duration",
					"validity_period_end_date",
					"is_early_start"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitSummaryResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"actual_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"actual_stop_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"permit_status": {
						"$ref": "#/components/schemas/PermitStatusResponse"
					},
					"permit_status_string": {
						"type": "string"
					},
					"work_category": {
						"$ref": "#/components/schemas/WorkCategoryResponseEnum"
					},
					"work_category_string": {
						"type": "string"
					}
				},
				"required": [
					"permit_reference_number",
					"proposed_start_date",
					"proposed_end_date",
					"permit_status",
					"permit_status_string",
					"work_category",
					"work_category_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"MarkPermitAsUnderAssessmentRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"PermitNonComplianceLinkRequest": {
				"properties": {
					"non_compliance_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"non_compliance_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"IndustrySectorResponse": {
				"enum": [
					"electric",
					"water",
					"gas",
					"telecoms",
					"transport",
					"highway_authority",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ForwardPlanStatusResponse": {
				"enum": [
					"raised",
					"cancelled",
					"progressed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ForwardPlanSummaryResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"forward_plan_reference_number": {
						"type": "string"
					},
					"start_date": {
						"type": "string",
						"format": "date-time"
					},
					"end_date": {
						"type": "string",
						"format": "date-time"
					},
					"forward_plan_status": {
						"$ref": "#/components/schemas/ForwardPlanStatusResponse"
					},
					"forward_plan_status_string": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"forward_plan_reference_number",
					"start_date",
					"end_date",
					"forward_plan_status",
					"forward_plan_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AuditEvent": {
				"enum": [
					"historic_action",
					"inspection_passed",
					"inspection_failed",
					"inspection_unable_to_carry_out",
					"inspection_further_required",
					"inspection_agreed_site_compliance",
					"inspection_withdraw_defect",
					"activity_submitted",
					"activity_edited",
					"activity_cancelled",
					"fpn_submitted",
					"fpn_accepted",
					"fpn_paid",
					"fpn_disputed",
					"fpn_withdrawn",
					"permit_granted",
					"permit_refused",
					"permit_cancelled",
					"permit_revoked",
					"permit_deemed",
					"paa_granted",
					"paa_refused",
					"paa_cancelled",
					"paa_revoked",
					"alteration_submitted",
					"alteration_refused",
					"alteration_granted",
					"alteration_granted_with_duration_challenge",
					"alteration_deemed",
					"alteration_cancelled",
					"lane_rental_assessed",
					"reinstatement_submitted",
					"file_uploaded",
					"comment_submitted",
					"work_start_logged",
					"work_stop_logged",
					"work_start_reverted",
					"work_stop_reverted",
					"forward_plan_submitted",
					"forward_plan_cancelled",
					"user_removed",
					"user_invited",
					"user_name_updated",
					"inspection_units_logged",
					"permit_submitted",
					"paa_submitted",
					"forward_plan_edited",
					"permit_discount_updated",
					"paa_discount_updated",
					"paa_deemed",
					"organisation_contract_added",
					"organisation_contract_removed",
					"organisation_updated",
					"workstream_created",
					"workstream_updated",
					"inspection_works_stopped",
					"inspection_works_stopped_apparatus_remaining",
					"inspection_works_in_progress",
					"inspection_works_in_progress_no_carriageway_incursion",
					"inspection_non_compliant_with_conditions",
					"permit_modification_request",
					"scheduled_inspection_cancelled",
					"scheduled_inspection_created",
					"alteration_applied_auto",
					"section_81_submitted",
					"final_reinstatement_updated",
					"section_81_acknowledged",
					"section_81_accepted",
					"section_81_accepted_fixed",
					"section_81_rejected",
					"section_81_resolved_by_ha",
					"section_81_cancelled",
					"support_desk_action",
					"permit_hs2_acknowledged",
					"geographical_area_created",
					"geographical_area_updated",
					"workstream_access_updated",
					"planned_works_record_created",
					"in_progress_works_record_created",
					"historic_works_record_created",
					"non_notifiable_works_record_created",
					"section_81_works_record_created",
					"unattributable_works_record_created",
					"upcoming_event",
					"sample_inspection_target_created",
					"sample_inspection_target_updated",
					"sample_inspection_created",
					"sample_inspection_completed",
					"sample_inspection_removed",
					"sample_inspection_expired",
					"internal_comment_submitted",
					"comment_read",
					"excavation_carried_out_updated",
					"sample_inspection_target_closed",
					"section_81_linked_to_permit",
					"section_81_unlinked_from_permit",
					"section_81_reassigned",
					"permit_granted_with_duration_challenge",
					"inspection_withdrawn",
					"section_74_warning_issued",
					"section_74_warning_acknowledged",
					"section_74_site_visited_and_rectified",
					"section_74_charges_ended",
					"section_74_warning_disputed",
					"section_74_withdrawn",
					"section_74_draft_invoice_issued",
					"section_74_resolved",
					"section_74_draft_invoice_acknowledged",
					"section_74_charge_under_review",
					"section_74_charge_agreed",
					"alteration_duration_challenge_accepted",
					"alteration_duration_challenge_not_accepted",
					"alteration_duration_challenge_non_acceptance_response",
					"permit_duration_challenge_accepted",
					"permit_duration_challenge_not_accepted",
					"permit_duration_challenge_non_acceptance_response",
					"section_58_created",
					"section_58_progressed",
					"section_58_cancelled",
					"section_58_closed",
					"reinstatement_deleted",
					"site_deleted",
					"inspection_deleted",
					"site_subsumed",
					"fpn_deleted",
					"current_traffic_management_type_updated",
					"ancillary_info_added",
					"ancillary_info_removed",
					"sample_inspection_issued",
					"inspection_outcome_accepted",
					"inspection_outcome_disputed",
					"inspection_outcome_promoter_accepts_failed_inspection",
					"sample_inspection_target_deleted",
					"sample_inspection_quarter_started",
					"sample_inspection_quarter_ended",
					"fee_matrix_updated",
					"organisation_fpn_details_updated",
					"inspection_auto_accepted",
					"sample_inspection_quarter_end_reverted",
					"private_street_notice_issued",
					"private_street_notice_cancelled",
					"non_compliance_issued",
					"non_compliance_withdrawn",
					"non_compliance_resolved",
					"inspection_linked_to_non_compliance",
					"permit_linked_to_non_compliance",
					"inspection_outcome_joint_site_meeting_needed",
					"inspection_outcome_reviewing_dispute",
					"inspection_outcome_no_agreement",
					"non_compliance_works_completed_and_passed",
					"non_compliance_joint_site_meeting_suggested",
					"non_compliance_will_attend_joint_site_meeting",
					"non_compliance_works_complete_ready_for_inspection",
					"non_compliance_joint_site_meeting_not_needed",
					"event_subscription_created",
					"event_subscription_removed",
					"material_classification_submitted",
					"non_compliance_accept_suggestion",
					"permit_under_assessment"
				],
				"type": "string"
			},
			"WorkHistorySummaryResponse": {
				"properties": {
					"action_date": {
						"type": "string",
						"format": "date-time"
					},
					"topic": {
						"type": "string"
					},
					"details": {
						"type": "string"
					},
					"username": {
						"type": "string"
					},
					"event": {
						"$ref": "#/components/schemas/AuditEvent"
					},
					"event_string": {
						"type": "string"
					},
					"object_reference": {
						"type": "string",
						"nullable": true
					},
					"update_id": {
						"type": "number",
						"format": "double"
					},
					"internal_user_identifier": {
						"type": "string",
						"nullable": true
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"action_date",
					"topic",
					"details",
					"username",
					"event",
					"event_string",
					"update_id"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementStatusResponse": {
				"enum": [
					"interim",
					"permanent",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ReinstatementTypeResponse": {
				"enum": [
					"excavation",
					"bar_holes",
					"core_holes",
					"pole_testing",
					"upcoming_enum"
				],
				"type": "string"
			},
			"SiteSummaryResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string",
						"nullable": true
					},
					"site_reference_number": {
						"type": "string"
					},
					"reinstatement_reference_number": {
						"type": "string"
					},
					"site_description": {
						"type": "string"
					},
					"depth": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"length": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"width": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"completed_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"site_status": {
						"$ref": "#/components/schemas/ReinstatementStatusResponse"
					},
					"site_status_string": {
						"type": "string"
					},
					"reinstatement_type": {
						"$ref": "#/components/schemas/ReinstatementTypeResponse"
					},
					"reinstatement_type_string": {
						"type": "string"
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"is_subsumed": {
						"type": "boolean"
					},
					"subsume_reason": {
						"type": "string",
						"nullable": true
					},
					"response_to_remedial_works": {
						"type": "boolean",
						"nullable": true
					},
					"base_courses_affected": {
						"type": "boolean",
						"nullable": true
					}
				},
				"required": [
					"site_reference_number",
					"reinstatement_reference_number",
					"site_description",
					"site_status",
					"site_status_string",
					"reinstatement_type",
					"reinstatement_type_string",
					"is_subsumed"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InspectionResponseTypeResponse": {
				"enum": [
					"inspection",
					"reinspection",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionTypeResponse": {
				"enum": [
					"live_site",
					"reinstatement",
					"non_compliance_follow_up",
					"section_81",
					"investigatory_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionStatusResponse": {
				"enum": [
					"recorded",
					"withdrawn",
					"scheduled",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionCategoryResponse": {
				"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",
					"section_81_initial",
					"section_81_follow_up",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionOutcomeResponse": {
				"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",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionOutcomeStatusTypeResponse": {
				"enum": [
					"inspection_outcome_accepted",
					"inspection_outcome_disputed",
					"inspection_outcome_promoter_accepts_failed_inspection",
					"joint_site_meeting_needed",
					"reviewing_dispute",
					"inspection_withdrawn",
					"no_agreement",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionSummaryResponse": {
				"properties": {
					"inspection_date": {
						"type": "string",
						"format": "date-time"
					},
					"inspection_response_type": {
						"$ref": "#/components/schemas/InspectionResponseTypeResponse"
					},
					"inspection_response_type_string": {
						"type": "string"
					},
					"inspection_reference_number": {
						"type": "string",
						"nullable": true
					},
					"inspection_type": {
						"$ref": "#/components/schemas/InspectionTypeResponse"
					},
					"inspection_type_string": {
						"type": "string"
					},
					"inspection_status": {
						"$ref": "#/components/schemas/InspectionStatusResponse"
					},
					"inspection_status_string": {
						"type": "string"
					},
					"inspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategoryResponse"
							}
						],
						"nullable": true
					},
					"inspection_category_string": {
						"type": "string",
						"nullable": true
					},
					"inspection_outcome": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionOutcomeResponse"
							}
						],
						"nullable": true
					},
					"inspection_outcome_string": {
						"type": "string",
						"nullable": true
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"auto_acceptance_due_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ha_response_status": {
						"$ref": "#/components/schemas/InspectionOutcomeStatusTypeResponse"
					},
					"ha_response_status_string": {
						"type": "string"
					},
					"ha_response_status_change_date": {
						"type": "string",
						"format": "date-time"
					},
					"ha_response_details": {
						"type": "string"
					},
					"promoter_response_status": {
						"$ref": "#/components/schemas/InspectionOutcomeStatusTypeResponse"
					},
					"promoter_response_status_string": {
						"type": "string"
					},
					"promoter_response_status_change_date": {
						"type": "string",
						"format": "date-time"
					},
					"promoter_response_details": {
						"type": "string"
					},
					"is_auto_accepted": {
						"type": "boolean",
						"nullable": true
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"inspection_date",
					"inspection_response_type",
					"inspection_response_type_string",
					"inspection_type",
					"inspection_type_string",
					"inspection_status",
					"inspection_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"OffenceCodeResponse": {
				"enum": [
					"offence_code_05",
					"offence_code_06",
					"offence_code_08",
					"offence_code_09",
					"upcoming_enum"
				],
				"type": "string"
			},
			"FPNStatusResponse": {
				"enum": [
					"issued",
					"accepted",
					"paid",
					"paid_discounted",
					"disputed",
					"withdrawn",
					"upcoming_enum"
				],
				"type": "string"
			},
			"FPNSummaryResponse": {
				"properties": {
					"fpn_reference_number": {
						"type": "string"
					},
					"fpn_offence_type": {
						"$ref": "#/components/schemas/OffenceCodeResponse"
					},
					"fpn_offence_type_string": {
						"type": "string"
					},
					"issue_date_time": {
						"type": "string",
						"format": "date-time"
					},
					"fpn_status": {
						"$ref": "#/components/schemas/FPNStatusResponse"
					},
					"fpn_status_string": {
						"type": "string"
					},
					"status_changed_date": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"fpn_reference_number",
					"fpn_offence_type",
					"fpn_offence_type_string",
					"issue_date_time",
					"fpn_status",
					"fpn_status_string",
					"status_changed_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81SeverityResponse": {
				"enum": [
					"high",
					"low",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section81StatusResponse": {
				"enum": [
					"issued",
					"acknowledged",
					"accepted",
					"accepted_fixed",
					"rejected",
					"resolved_by_ha",
					"cancelled",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section81TypeResponse": {
				"enum": [
					"tee_valve_access_covers",
					"cabinet",
					"marker_post",
					"pole_post",
					"overhead_cables_broken_low_encroaching_onto_highway",
					"unattributed_works_live_site",
					"unattributed_works_completed",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section81SummaryResponse": {
				"properties": {
					"section_81_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"location_description": {
						"type": "string"
					},
					"section_81_severity": {
						"$ref": "#/components/schemas/Section81SeverityResponse"
					},
					"section_81_severity_string": {
						"type": "string"
					},
					"section_81_status": {
						"$ref": "#/components/schemas/Section81StatusResponse"
					},
					"section_81_status_string": {
						"type": "string"
					},
					"section_81_type": {
						"$ref": "#/components/schemas/Section81TypeResponse"
					},
					"section_81_type_string": {
						"type": "string"
					}
				},
				"required": [
					"section_81_reference_number",
					"date_created",
					"location_description",
					"section_81_status",
					"section_81_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FileResponse": {
				"properties": {
					"file_id": {
						"type": "number",
						"format": "double"
					},
					"name": {
						"type": "string"
					},
					"created_date": {
						"type": "string",
						"format": "date-time"
					},
					"user_created_by": {
						"type": "string"
					},
					"swa_code": {
						"type": "string"
					},
					"organisation_name": {
						"type": "string"
					}
				},
				"required": [
					"file_id",
					"name",
					"created_date",
					"user_created_by",
					"swa_code",
					"organisation_name"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PbiSampleInspectionSummaryResponse": {
				"properties": {
					"pbi_sample_inspection_reference_number": {
						"type": "string"
					},
					"inspection_category": {
						"$ref": "#/components/schemas/InspectionCategoryResponse"
					},
					"inspection_category_string": {
						"type": "string"
					},
					"sample_expiry_date": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"pbi_sample_inspection_reference_number",
					"inspection_category",
					"inspection_category_string",
					"sample_expiry_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"OverrunWarningReasonResponse": {
				"enum": [
					"more_than_five_slg_items_left_on_site",
					"five_or_less_slg_items_left_on_site",
					"open_excavation",
					"spoil_left_on_site",
					"missing_road_markings",
					"missing_street_apparatus",
					"active_traffic_management",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section74HAStatusResponse": {
				"enum": [
					"warning_issued",
					"charges_ended",
					"warning_disputed",
					"withdrawn",
					"draft_invoice_issued",
					"resolved",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section74SummaryResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string"
					},
					"section_74_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"overrun_warning_reasons": {
						"items": {
							"$ref": "#/components/schemas/OverrunWarningReasonResponse"
						},
						"type": "array"
					},
					"overrun_warning_reasons_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"ha_status": {
						"$ref": "#/components/schemas/Section74HAStatusResponse"
					},
					"ha_status_string": {
						"type": "string"
					}
				},
				"required": [
					"permit_reference_number",
					"section_74_reference_number",
					"date_created",
					"overrun_warning_reasons",
					"overrun_warning_reasons_string",
					"ha_status",
					"ha_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetStatusResponse": {
				"enum": [
					"cancelled",
					"issued",
					"upcoming_enum"
				],
				"type": "string"
			},
			"PrivateStreetSummaryResponse": {
				"properties": {
					"private_street_reference_number": {
						"type": "string"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"private_street_status": {
						"$ref": "#/components/schemas/PrivateStreetStatusResponse"
					},
					"private_street_status_string": {
						"type": "string"
					}
				},
				"required": [
					"private_street_reference_number",
					"proposed_start_date",
					"proposed_end_date",
					"private_street_status",
					"private_street_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"NonComplianceStatusResponse": {
				"enum": [
					"issued",
					"withdrawn",
					"resolved",
					"upcoming_enum"
				],
				"type": "string"
			},
			"NonComplianceSummaryResponse": {
				"properties": {
					"non_compliance_reference_number": {
						"type": "string"
					},
					"non_compliance_date": {
						"type": "string",
						"format": "date-time"
					},
					"non_compliance_status": {
						"$ref": "#/components/schemas/NonComplianceStatusResponse"
					},
					"non_compliance_status_string": {
						"type": "string"
					}
				},
				"required": [
					"non_compliance_reference_number",
					"non_compliance_date",
					"non_compliance_status",
					"non_compliance_status_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CommentTopicResponse": {
				"enum": [
					"general",
					"section_74",
					"inspection",
					"fpn",
					"overrun",
					"forward_plan",
					"change_request",
					"imposed_variation",
					"duration_challenge",
					"section_81",
					"unattributed_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"CommentResponse": {
				"properties": {
					"comment_reference_number": {
						"type": "string"
					},
					"comment_topic": {
						"$ref": "#/components/schemas/CommentTopicResponse"
					},
					"comment_topic_string": {
						"type": "string"
					},
					"detail": {
						"type": "string"
					},
					"author_email_address": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"is_read": {
						"type": "boolean"
					},
					"read_by": {
						"type": "string",
						"nullable": true
					},
					"read_on": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"is_internal": {
						"type": "boolean"
					},
					"author_organisation_ref": {
						"type": "string"
					}
				},
				"required": [
					"comment_topic",
					"comment_topic_string",
					"detail",
					"author_email_address",
					"date_created"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"workstream_prefix": {
						"type": "string"
					},
					"promoter_swa_code": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"promoter_organisation_industry_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/IndustrySectorResponse"
							}
						],
						"nullable": true
					},
					"promoter_organisation_industry_type_string": {
						"type": "string",
						"nullable": true
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"highway_authority": {
						"type": "string"
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"road_category": {
						"type": "number",
						"format": "double"
					},
					"works_coordinates": {},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"inspection_units": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"work_status": {
						"$ref": "#/components/schemas/WorkStatusResponse"
					},
					"work_status_string": {
						"type": "string"
					},
					"works_location_description": {
						"type": "string"
					},
					"work_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"work_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"description_of_work": {
						"type": "string",
						"nullable": true
					},
					"active_permit": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitResponse"
							}
						],
						"nullable": true
					},
					"forward_plan": {
						"allOf": [
							{
								"$ref": "#/components/schemas/ForwardPlanSummaryResponse"
							}
						],
						"nullable": true
					},
					"permits": {
						"items": {
							"$ref": "#/components/schemas/PermitSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"history": {
						"items": {
							"$ref": "#/components/schemas/WorkHistorySummaryResponse"
						},
						"type": "array"
					},
					"sites": {
						"items": {
							"$ref": "#/components/schemas/SiteSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"inspections": {
						"items": {
							"$ref": "#/components/schemas/InspectionSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"fpns": {
						"items": {
							"$ref": "#/components/schemas/FPNSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"section_81": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section81SummaryResponse"
							}
						],
						"nullable": true
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileResponse"
						},
						"type": "array",
						"nullable": true
					},
					"pbi_sample_inspections": {
						"items": {
							"$ref": "#/components/schemas/PbiSampleInspectionSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"number_of_sites": {
						"type": "number",
						"format": "double"
					},
					"section74s": {
						"items": {
							"$ref": "#/components/schemas/Section74SummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"street_line": {},
					"private_street_notice": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PrivateStreetSummaryResponse"
							}
						],
						"nullable": true
					},
					"non_compliances": {
						"items": {
							"$ref": "#/components/schemas/NonComplianceSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"latest_comments": {
						"items": {
							"$ref": "#/components/schemas/CommentResponse"
						},
						"type": "array",
						"nullable": true
					}
				},
				"required": [
					"work_reference_number",
					"workstream_prefix",
					"promoter_swa_code",
					"promoter_organisation",
					"highway_authority_swa_code",
					"highway_authority",
					"street_name",
					"road_category",
					"works_coordinates",
					"usrn",
					"work_status",
					"work_status_string",
					"works_location_description",
					"history"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"permit_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"permit_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 24 characters\nMust be unique in the system\nMust contain only alphanumeric characters, dashes and underscores\nIf not supplied it will be auto-generated"
					},
					"secondary_contact": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_number": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "proposed_start_time is required if proposed_start_date is in the past"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time",
						"description": "proposed_end_date must be on or after proposed_start_date\nIf work_type = planned, the maximum date range between proposed_start_date and proposed_end_date is 5 years"
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "proposed_end_time is required if proposed_end_date is in the past\nproposed_end_time must be after the date and time for proposed_start_time"
					},
					"description_of_work": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"excavation": {
						"type": "boolean",
						"description": "Whether an excavation will be required"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"traffic_management_plan": {
						"type": "boolean"
					},
					"lane_rental_applicable": {
						"type": "boolean"
					},
					"permit_conditions": {
						"items": {
							"$ref": "#/components/schemas/PermitCondition"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"collaboration_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if collaborative_working = true\nMax length 500 characters"
					},
					"collaborative_works": {
						"type": "string",
						"nullable": true,
						"description": "Optional but only saved if collaborative_working = true\nMax length 500 characters\nWork Reference Number of collaborative works"
					},
					"activity_type": {
						"$ref": "#/components/schemas/ActivityType"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"application_type": {
						"$ref": "#/components/schemas/ApplicationType"
					},
					"collaboration_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/CollaborationType"
							}
						],
						"nullable": true,
						"description": "Required if collaborative_working = true"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"permit_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASD"
						},
						"type": "array",
						"nullable": true
					},
					"work_type": {
						"$ref": "#/components/schemas/WorkType"
					},
					"is_ttro_required": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is planned"
					},
					"immediate_risk": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is immediate"
					},
					"early_start_pre_approval": {
						"type": "boolean",
						"nullable": true,
						"description": "See business rules section 3.4.6 - Early start"
					},
					"pre_approval_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 500 characters"
					},
					"pre_approval_authoriser": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 100 characters"
					},
					"early_start_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = false\nMax length 500 characters"
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootway"
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpath"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"workstream_prefix": {
						"type": "string",
						"nullable": true,
						"description": "Must consist of 3 positive whole numbers"
					},
					"hs2_in_act_limits": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if promoter_swa_code = '7374'"
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"hs2_highway_exemption": {
						"allOf": [
							{
								"$ref": "#/components/schemas/HS2HighwayExemption"
							}
						],
						"nullable": true,
						"description": "Required if work_type = 'hs2_highway_works' and hs2_in_act_limits = true"
					},
					"hs2_highway_emails": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array Max length 2 items\nArray values must be valid email addresses\nArray values max length 100 characters"
					},
					"additional_contact": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"hs2_additional_usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Array max length 10 items\nArray values must be valid USRNs"
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"secondary_contact",
					"secondary_contact_number",
					"proposed_start_date",
					"proposed_end_date",
					"description_of_work",
					"excavation",
					"traffic_management_plan",
					"lane_rental_applicable",
					"collaborative_working",
					"activity_type",
					"traffic_management_type",
					"application_type",
					"location_types",
					"work_type",
					"close_footway",
					"close_footpath",
					"works_location_description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkStartUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"actual_start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Date must be now or in the past"
					}
				},
				"required": [
					"actual_start_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkStartRevertRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"revert_reason": {
						"type": "string",
						"description": "revert_reason max length 500 characters\nPermit must be in progress\nWork must be planned\nWork must not have any reinstatements"
					}
				},
				"required": [
					"revert_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkStopUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"actual_stop_date": {
						"type": "string",
						"format": "date-time",
						"description": "actual_stop_date must be in the past\nMust be after actual start date\nPermit must be in progress"
					}
				},
				"required": [
					"actual_stop_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkStopRevertRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"revert_reason": {
						"type": "string",
						"description": "revert_reason max length 500 characters\nPermit must be closed\nWork must be completed"
					}
				},
				"required": [
					"revert_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PaginationDetails": {
				"properties": {
					"total_rows": {
						"type": "number",
						"format": "double"
					},
					"has_next_page": {
						"type": "boolean"
					}
				},
				"required": [
					"total_rows",
					"has_next_page"
				],
				"type": "object",
				"additionalProperties": false
			},
			"WorkHistoryResponse": {
				"properties": {
					"pagination": {
						"$ref": "#/components/schemas/PaginationDetails"
					},
					"rows": {
						"items": {
							"$ref": "#/components/schemas/WorkHistorySummaryResponse"
						},
						"type": "array"
					}
				},
				"required": [
					"pagination",
					"rows"
				],
				"type": "object",
				"additionalProperties": false
			},
			"SiteCreateResponse": {
				"properties": {
					"site_reference_number": {
						"type": "string"
					},
					"reinstatement_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"site_reference_number",
					"reinstatement_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementType": {
				"enum": [
					"excavation",
					"bar_holes",
					"core_holes",
					"pole_testing"
				],
				"type": "string"
			},
			"ReinstatementStatus": {
				"enum": [
					"interim",
					"permanent"
				],
				"type": "string"
			},
			"SiteCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reinstatement_status": {
						"$ref": "#/components/schemas/ReinstatementStatus",
						"description": "See business rules section 8.4 - Making interim sites permanent"
					},
					"reinstatement_date": {
						"type": "string",
						"format": "date-time",
						"description": "reinstatement_date must be in the past\nMust be after actual start date\nMust be before actual end date (if entered)"
					},
					"depth": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 99.99 inclusive, to two decimal places.\nRequired if reinstatement type is excavation."
					},
					"length": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 9999.99 inclusive, to two decimal places\nRequired if reinstatement type is excavation."
					},
					"width": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 99.99 inclusive, to two decimal places\nRequired if reinstatement type is excavation."
					},
					"reinstatement_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"secondary_reinstatement_coordinates": {
						"nullable": true,
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon, if provided"
					},
					"location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique\nMust not contain null or undefined values"
					},
					"reinstatement_evidence": {
						"type": "boolean",
						"description": "Whether reinstatement evidence has been supplied"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if reinstatement_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"final_reinstatement": {
						"type": "boolean",
						"nullable": true,
						"description": "Whether it is a final reinstatement\nRequired if reinstatement type is excavation"
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Must be a number between 0 and 100\nRequired if reinstatement type is not excavation"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reinstatement_type": {
						"$ref": "#/components/schemas/ReinstatementType"
					}
				},
				"required": [
					"reinstatement_status",
					"reinstatement_date",
					"reinstatement_coordinates",
					"location_description",
					"location_types",
					"reinstatement_evidence",
					"reinstatement_type"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementResponse": {
				"properties": {
					"reinstatement_reference_number": {
						"type": "string"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true
					},
					"reinstatement_status": {
						"$ref": "#/components/schemas/ReinstatementStatusResponse"
					},
					"reinstatement_status_string": {
						"type": "string"
					},
					"reinstatement_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"depth": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"length": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"width": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"reinstatement_coordinates": {},
					"secondary_reinstatement_coordinates": {
						"nullable": true
					},
					"location_description": {
						"type": "string"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_modified": {
						"type": "string",
						"format": "date-time"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"reinstatement_evidence": {
						"type": "boolean"
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"is_active_reinstatement": {
						"type": "boolean"
					},
					"response_to_remedial_works": {
						"type": "boolean",
						"nullable": true
					},
					"base_courses_affected": {
						"type": "boolean",
						"nullable": true
					}
				},
				"required": [
					"reinstatement_reference_number",
					"reinstatement_status",
					"reinstatement_status_string",
					"reinstatement_coordinates",
					"location_description",
					"date_created",
					"date_modified",
					"location_types",
					"location_types_string",
					"reinstatement_evidence",
					"is_active_reinstatement"
				],
				"type": "object",
				"additionalProperties": false
			},
			"SiteResponse": {
				"properties": {
					"permit_reference_number": {
						"type": "string",
						"nullable": true
					},
					"site_reference_number": {
						"type": "string"
					},
					"reinstatement_reference_number": {
						"type": "string"
					},
					"site_description": {
						"type": "string"
					},
					"depth": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"length": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"width": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"completed_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"site_status": {
						"$ref": "#/components/schemas/ReinstatementStatusResponse"
					},
					"site_status_string": {
						"type": "string"
					},
					"reinstatement_type": {
						"$ref": "#/components/schemas/ReinstatementTypeResponse"
					},
					"reinstatement_type_string": {
						"type": "string"
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"is_subsumed": {
						"type": "boolean"
					},
					"subsume_reason": {
						"type": "string",
						"nullable": true
					},
					"response_to_remedial_works": {
						"type": "boolean",
						"nullable": true
					},
					"base_courses_affected": {
						"type": "boolean",
						"nullable": true
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"site_coordinates": {},
					"reinstatements": {
						"items": {
							"$ref": "#/components/schemas/ReinstatementResponse"
						},
						"type": "array"
					}
				},
				"required": [
					"site_reference_number",
					"reinstatement_reference_number",
					"site_description",
					"site_status",
					"site_status_string",
					"reinstatement_type",
					"reinstatement_type_string",
					"is_subsumed",
					"location_types",
					"location_types_string",
					"site_coordinates",
					"reinstatements"
				],
				"type": "object",
				"additionalProperties": false
			},
			"SubsumeSiteRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"subsume_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"subsume_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementCreateResponse": {
				"properties": {
					"reinstatement_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"reinstatement_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReinstatementCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reinstatement_status": {
						"$ref": "#/components/schemas/ReinstatementStatus",
						"description": "See business rules section 8.4 - Making interim sites permanent"
					},
					"reinstatement_date": {
						"type": "string",
						"format": "date-time",
						"description": "reinstatement_date must be in the past\nMust be after actual start date\nMust be before actual end date (if entered)"
					},
					"depth": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 99.99 inclusive, to two decimal places.\nRequired if reinstatement type is excavation."
					},
					"length": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 9999.99 inclusive, to two decimal places\nRequired if reinstatement type is excavation."
					},
					"width": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is number between 0 and 99.99 inclusive, to two decimal places\nRequired if reinstatement type is excavation."
					},
					"reinstatement_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"secondary_reinstatement_coordinates": {
						"nullable": true,
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon, if provided"
					},
					"location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique\nMust not contain null or undefined values"
					},
					"reinstatement_evidence": {
						"type": "boolean",
						"description": "Whether reinstatement evidence has been supplied"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if reinstatement_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"final_reinstatement": {
						"type": "boolean",
						"nullable": true,
						"description": "Whether it is a final reinstatement\nRequired if reinstatement type is excavation"
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Must be a number between 0 and 100\nRequired if reinstatement type is not excavation"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"response_to_remedial_works": {
						"type": "boolean",
						"nullable": true,
						"description": "Must be provided if base_courses_affected is provided"
					},
					"base_courses_affected": {
						"type": "boolean",
						"nullable": true,
						"description": "Must be provided if response_to_remedial_works is provided"
					}
				},
				"required": [
					"reinstatement_status",
					"reinstatement_date",
					"reinstatement_coordinates",
					"location_description",
					"location_types",
					"reinstatement_evidence"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FailureReasonResponse": {
				"enum": [
					"live_site_signage",
					"live_site_distance",
					"live_site_safety_zone",
					"live_site_barriers",
					"live_site_traffic_control",
					"live_site_pedestrian_provision",
					"live_site_cyclist_provision",
					"live_site_operative_qualification",
					"live_site_equipment",
					"live_site_materials",
					"live_site_compaction",
					"live_site_construction_layers",
					"live_site_storage_of_materials",
					"reinstatement_damage_to_surround_area",
					"reinstatement_saw_cutting",
					"reinstatement_acute_angles",
					"reinstatement_verge",
					"reinstatement_anti_skid",
					"reinstatement_fixed_features",
					"reinstatement_modular",
					"reinstatement_proximity",
					"reinstatement_materials_incorrect",
					"reinstatement_materials_damaged",
					"reinstatement_edge_sealant",
					"reinstatement_over_banding",
					"reinstatement_road_markings",
					"reinstatement_infill_pointing",
					"reinstatement_ironwork_apparatus",
					"reinstatement_breaking_out_fretting",
					"reinstatement_interface_cracking",
					"reinstatement_crowning",
					"reinstatement_depression",
					"reinstatement_as_laid_profile",
					"reinstatement_texture_depth",
					"reinstatement_edge_depression",
					"investigatory_air_void",
					"investigatory_material_type",
					"investigatory_layer_depth",
					"investigatory_contamination",
					"investigatory_other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"SiteDetails": {
				"properties": {
					"site_description": {
						"type": "string"
					},
					"site_reference_number": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"site_description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FailureReasonDetailsResponse": {
				"properties": {
					"failure_reason": {
						"$ref": "#/components/schemas/FailureReasonResponse"
					},
					"failure_reason_string": {
						"type": "string"
					},
					"sites": {
						"items": {
							"$ref": "#/components/schemas/SiteDetails"
						},
						"type": "array",
						"nullable": true
					},
					"details": {
						"type": "string"
					},
					"site_name": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"failure_reason",
					"failure_reason_string",
					"details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DefectFixedOnsiteResponse": {
				"enum": [
					"yes_by_inspector",
					"yes_by_onsite_members",
					"no",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionReasonForWithdrawalResponse": {
				"enum": [
					"incorrect_outcome_recorded",
					"wrong_works_or_organisation",
					"wrong_details",
					"outcome_changed",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"InspectionResponse": {
				"properties": {
					"inspection_reference_number": {
						"type": "string"
					},
					"inspection_type": {
						"$ref": "#/components/schemas/InspectionTypeResponse"
					},
					"inspection_type_string": {
						"type": "string"
					},
					"inspection_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"inspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategoryResponse"
							}
						],
						"nullable": true
					},
					"inspection_category_string": {
						"type": "string",
						"nullable": true
					},
					"inspection_outcome": {
						"$ref": "#/components/schemas/InspectionOutcomeResponse"
					},
					"inspection_outcome_string": {
						"type": "string"
					},
					"failure_reason_details": {
						"items": {
							"$ref": "#/components/schemas/FailureReasonDetailsResponse"
						},
						"type": "array",
						"nullable": true
					},
					"inspection_outcome_details": {
						"type": "string",
						"nullable": true
					},
					"was_call_logged": {
						"type": "boolean",
						"nullable": true
					},
					"call_logged_to": {
						"type": "string",
						"nullable": true
					},
					"call_logged_reference": {
						"type": "string",
						"nullable": true
					},
					"call_logged_summary": {
						"type": "string",
						"nullable": true
					},
					"defect_fixed_on_site": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DefectFixedOnsiteResponse"
							}
						],
						"nullable": true
					},
					"defect_fixed_on_site_string": {
						"type": "string",
						"nullable": true
					},
					"additional_comments": {
						"type": "string",
						"nullable": true
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_modified": {
						"type": "string",
						"format": "date-time"
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"work_reference_number": {
						"type": "string"
					},
					"reinspection_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"username": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"highway_authority": {
						"type": "string"
					},
					"inspector_name": {
						"type": "string",
						"nullable": true
					},
					"made_safe_by_ha": {
						"type": "boolean",
						"nullable": true
					},
					"inspection_status": {
						"$ref": "#/components/schemas/InspectionStatusResponse"
					},
					"inspection_status_string": {
						"type": "string"
					},
					"inspection_reason_for_withdrawal": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionReasonForWithdrawalResponse"
							}
						],
						"nullable": true
					},
					"inspection_reason_for_withdrawal_string": {
						"type": "string",
						"nullable": true
					},
					"withdrawal_details": {
						"type": "string",
						"nullable": true
					},
					"promoter_response_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionOutcomeStatusTypeResponse"
							}
						],
						"nullable": true
					},
					"promoter_response_status_string": {
						"type": "string",
						"nullable": true
					},
					"promoter_response_status_change_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"promoter_response_details": {
						"type": "string",
						"nullable": true
					},
					"ha_response_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionOutcomeStatusTypeResponse"
							}
						],
						"nullable": true
					},
					"ha_response_status_string": {
						"type": "string",
						"nullable": true
					},
					"ha_response_status_change_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ha_response_details": {
						"type": "string",
						"nullable": true
					},
					"auto_acceptance_due_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"is_auto_accepted": {
						"type": "boolean"
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"inspection_reference_number",
					"inspection_type",
					"inspection_type_string",
					"inspection_start_date",
					"inspection_outcome",
					"inspection_outcome_string",
					"date_created",
					"date_modified",
					"work_reference_number",
					"username",
					"promoter_organisation",
					"highway_authority",
					"inspection_status",
					"inspection_status_string",
					"is_auto_accepted"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InspectionCreateResponse": {
				"properties": {
					"inspection_reference_number": {
						"type": "string"
					},
					"non_compliance_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"inspection_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"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",
					"upcoming_enum"
				],
				"type": "string"
			},
			"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"
			},
			"FailureReason": {
				"enum": [
					"live_site_signage",
					"live_site_distance",
					"live_site_safety_zone",
					"live_site_barriers",
					"live_site_traffic_control",
					"live_site_pedestrian_provision",
					"live_site_cyclist_provision",
					"live_site_operative_qualification",
					"live_site_equipment",
					"live_site_materials",
					"live_site_compaction",
					"live_site_construction_layers",
					"live_site_storage_of_materials",
					"reinstatement_damage_to_surround_area",
					"reinstatement_saw_cutting",
					"reinstatement_acute_angles",
					"reinstatement_verge",
					"reinstatement_anti_skid",
					"reinstatement_fixed_features",
					"reinstatement_modular",
					"reinstatement_proximity",
					"reinstatement_materials_incorrect",
					"reinstatement_materials_damaged",
					"reinstatement_edge_sealant",
					"reinstatement_over_banding",
					"reinstatement_road_markings",
					"reinstatement_infill_pointing",
					"reinstatement_ironwork_apparatus",
					"reinstatement_breaking_out_fretting",
					"reinstatement_interface_cracking",
					"reinstatement_crowning",
					"reinstatement_depression",
					"reinstatement_as_laid_profile",
					"reinstatement_texture_depth",
					"reinstatement_edge_depression",
					"investigatory_air_void",
					"investigatory_material_type",
					"investigatory_layer_depth",
					"investigatory_contamination",
					"investigatory_other"
				],
				"type": "string"
			},
			"FailureReasonDetails": {
				"properties": {
					"failure_reason": {
						"$ref": "#/components/schemas/FailureReason"
					},
					"site_reference_numbers": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if work has a reinstatement"
					},
					"details": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"failure_reason",
					"details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"DefectFixedOnsite": {
				"enum": [
					"yes_by_inspector",
					"yes_by_onsite_members",
					"no"
				],
				"type": "string"
			},
			"InspectionCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"inspection_type": {
						"$ref": "#/components/schemas/InspectionType"
					},
					"inspection_start_date": {
						"type": "string",
						"format": "date-time",
						"description": "inspection_start_date must be in the past"
					},
					"inspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategory"
							}
						],
						"nullable": true,
						"description": "See business rules section 10.2 - Inspection types and categories"
					},
					"inspection_outcome": {
						"$ref": "#/components/schemas/InspectionOutcome",
						"description": "See business rules section 10.3 - Inspection outcomes"
					},
					"failure_reason_details": {
						"items": {
							"$ref": "#/components/schemas/FailureReasonDetails"
						},
						"type": "array",
						"nullable": true,
						"description": "See business rules section 10.3 - Inspection outcomes"
					},
					"inspection_outcome_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if inspection_outcome = unable_to_complete_inspection or non_compliant_with_conditions\nMax length 500 characters"
					},
					"was_call_logged": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if inspection_outcome = failed_high and inspection_type = live_site"
					},
					"call_logged_to": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 100 characters"
					},
					"call_logged_reference": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 100 characters"
					},
					"call_logged_summary": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 500 characters"
					},
					"defect_fixed_on_site": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DefectFixedOnsite"
							}
						],
						"nullable": true,
						"description": "Required if inspection_outcome = failed_high and inspection_type = live_site"
					},
					"additional_comments": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"inspection_evidence": {
						"type": "boolean"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if inspection_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"reinspection_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date for reinspection_date_time must match the date for reinspection_date\nTime must occur today or a date in the future"
					},
					"reinspection_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionType"
							}
						],
						"nullable": true,
						"description": "Defaulted to inspection_type value if this and/or reinspection_category are not provided and reinspection_date is provided"
					},
					"reinspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategory"
							}
						],
						"nullable": true,
						"description": "See business rules section 10.2 - Inspection types and categories\nDefaulted to inspection_category value if this and/or reinspection_type are not provided and reinspection_date is provided"
					},
					"username": {
						"type": "string",
						"description": "Max length 100 characters\nShould be populated with the user creating the inspection"
					},
					"inspector_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"made_safe_by_ha": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if inspection_type = section 81 and inspection_outcome = Failed - high or Failed - low"
					},
					"non_compliance_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 106 characters\nCreated inspection will be linked to an existing non-compliance with this reference number\ninspection_type must be reinstatement or non_compliance_follow_up"
					}
				},
				"required": [
					"inspection_type",
					"inspection_start_date",
					"inspection_outcome",
					"inspection_evidence",
					"username"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InspectionReasonForWithdrawal": {
				"enum": [
					"incorrect_outcome_recorded",
					"wrong_works_or_organisation",
					"wrong_details",
					"outcome_changed",
					"other"
				],
				"type": "string"
			},
			"InspectionWithdrawRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reason_for_withdrawal": {
						"$ref": "#/components/schemas/InspectionReasonForWithdrawal"
					},
					"withdrawal_details": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"reason_for_withdrawal",
					"withdrawal_details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InspectionOutcomeStatusType": {
				"enum": [
					"inspection_outcome_accepted",
					"inspection_outcome_disputed",
					"inspection_outcome_promoter_accepts_failed_inspection",
					"joint_site_meeting_needed",
					"reviewing_dispute",
					"no_agreement"
				],
				"type": "string"
			},
			"InspectionOutcomeStatusRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"inspection_response_type": {
						"$ref": "#/components/schemas/InspectionOutcomeStatusType"
					},
					"inspection_response_reason": {
						"type": "string",
						"nullable": true,
						"description": "Must be provided if inspection_response_type = inspection_outcome_disputed or inspection_outcome_promoter_accepts_failed_inspection\nMax length 500 characters"
					}
				},
				"required": [
					"inspection_response_type"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ScheduledInspectionCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"scheduled_inspection_type": {
						"$ref": "#/components/schemas/InspectionType"
					},
					"scheduled_inspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategory"
							}
						],
						"nullable": true,
						"description": "See business rules section 10.2 - Inspection types and categories"
					},
					"scheduled_inspection_date": {
						"type": "string",
						"format": "date-time",
						"description": "Date must occur today or a date in the future"
					},
					"scheduled_inspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date for scheduled_inspection_date_time must match the date for scheduled_inspection_date\nTime must occur today or a date in the future"
					}
				},
				"required": [
					"scheduled_inspection_type",
					"scheduled_inspection_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AuthenticationResponse": {
				"properties": {
					"idToken": {
						"type": "string",
						"nullable": true
					},
					"organisationReference": {
						"type": "string",
						"nullable": true
					},
					"accessToken": {
						"type": "string",
						"nullable": true
					},
					"refreshToken": {
						"type": "string",
						"nullable": true
					},
					"sessionToken": {
						"type": "string",
						"nullable": true
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"AuthenticationRequest": {
				"properties": {
					"emailAddress": {
						"type": "string"
					},
					"password": {
						"type": "string"
					}
				},
				"required": [
					"emailAddress",
					"password"
				],
				"type": "object",
				"additionalProperties": false
			},
			"InitialAuthenticationResponse": {
				"properties": {
					"sessionToken": {
						"type": "string"
					}
				},
				"required": [
					"sessionToken"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PaymentMethodResponse": {
				"enum": [
					"bank_transfer",
					"card_payment",
					"cash",
					"cheque",
					"upcoming_enum"
				],
				"type": "string"
			},
			"FPNResponse": {
				"properties": {
					"fpn_reference_number": {
						"type": "string"
					},
					"fpn_offence_type": {
						"$ref": "#/components/schemas/OffenceCodeResponse"
					},
					"fpn_offence_type_string": {
						"type": "string"
					},
					"issue_date_time": {
						"type": "string",
						"format": "date-time"
					},
					"fpn_status": {
						"$ref": "#/components/schemas/FPNStatusResponse"
					},
					"fpn_status_string": {
						"type": "string"
					},
					"status_changed_date": {
						"type": "string",
						"format": "date-time"
					},
					"location": {
						"type": "string"
					},
					"offence_date": {
						"type": "string",
						"format": "date-time"
					},
					"offence_details": {
						"type": "string"
					},
					"authorised_officer": {
						"type": "string"
					},
					"officer_contact_details": {
						"type": "string"
					},
					"officer_address": {
						"type": "string",
						"nullable": true
					},
					"representations_contact": {
						"type": "string",
						"nullable": true
					},
					"representations_contact_address": {
						"type": "string",
						"nullable": true
					},
					"payment_methods": {
						"items": {
							"$ref": "#/components/schemas/PaymentMethodResponse"
						},
						"type": "array",
						"nullable": true
					},
					"payment_methods_string": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true
					},
					"work_reference_number": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"ha_organisation": {
						"type": "string"
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"fpn_reference_number",
					"fpn_offence_type",
					"fpn_offence_type_string",
					"issue_date_time",
					"fpn_status",
					"fpn_status_string",
					"status_changed_date",
					"location",
					"offence_date",
					"offence_details",
					"authorised_officer",
					"officer_contact_details",
					"work_reference_number",
					"promoter_organisation",
					"ha_organisation"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FPNCreateResponse": {
				"properties": {
					"fpn_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"fpn_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"OffenceCode": {
				"enum": [
					"offence_code_05",
					"offence_code_06",
					"offence_code_08",
					"offence_code_09"
				],
				"type": "string"
			},
			"PaymentMethod": {
				"enum": [
					"bank_transfer",
					"card_payment",
					"cash",
					"cheque"
				],
				"type": "string"
			},
			"FPNCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"fpn_evidence": {
						"type": "boolean",
						"description": "Whether FPN evidence has been supplied"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if fpn_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"offence_date": {
						"type": "string",
						"format": "date-time",
						"description": "offence_date must be in the past"
					},
					"offence_code": {
						"$ref": "#/components/schemas/OffenceCode"
					},
					"offence_details": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"authorised_officer": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"officer_contact_details": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"officer_address": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"representations_contact": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"representations_contact_address": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"payment_methods": {
						"items": {
							"$ref": "#/components/schemas/PaymentMethod"
						},
						"type": "array"
					},
					"permit_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "The permit_reference_number of the associated permit"
					}
				},
				"required": [
					"fpn_evidence",
					"offence_date",
					"offence_code",
					"offence_details",
					"authorised_officer",
					"officer_contact_details",
					"officer_address",
					"representations_contact",
					"representations_contact_address",
					"payment_methods"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FPNStatus": {
				"enum": [
					"issued",
					"accepted",
					"paid",
					"paid_discounted",
					"disputed",
					"withdrawn"
				],
				"type": "string"
			},
			"FPNStatusUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"fpn_status": {
						"$ref": "#/components/schemas/FPNStatus"
					},
					"status_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if FPNStatus = withdrawn or disputed\nOptional if FPNStatus = accepted\nMax length 500 characters"
					}
				},
				"required": [
					"fpn_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CommentCreateResponse": {
				"properties": {
					"comment_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"comment_reference_number"
				],
				"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"
			},
			"CommentCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"detail": {
						"type": "string",
						"description": "Max length 1500 characters"
					},
					"topic": {
						"$ref": "#/components/schemas/CommentTopic",
						"description": "Only highway authorities can comment with the topic OVERRUN"
					},
					"is_internal": {
						"type": "boolean",
						"nullable": true,
						"description": "Flag a comment as internal. Internal comments visible to members of authors organisation.\nDefaults to false if not provided."
					}
				},
				"required": [
					"detail",
					"topic"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CommentReadRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationCreateResponse": {
				"properties": {
					"permit_alteration_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"permit_alteration_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"secondary_contact": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_number": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if work_type is immediate\nproposed_start_time is required if proposed_start_date is in the past"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time",
						"description": "proposed_end_date must be on or after proposed_start_date\nIf work_type = planned, the maximum date range between proposed_start_date and proposed_end_date is 5 years"
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "proposed_end_time is required if proposed_end_date is in the past\nproposed_end_time must be after the date and time for proposed_start_time"
					},
					"description_of_work": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"excavation": {
						"type": "boolean",
						"description": "Whether an excavation will be required"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"traffic_management_plan": {
						"type": "boolean"
					},
					"lane_rental_applicable": {
						"type": "boolean"
					},
					"permit_conditions": {
						"items": {
							"$ref": "#/components/schemas/PermitCondition"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"works_coordinates": {
						"nullable": true,
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"collaboration_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if collaborative_working = true\nMax length 500 characters"
					},
					"collaborative_works": {
						"type": "string",
						"nullable": true,
						"description": "Optional but only saved if collaborative_working = true\nMax length 500 characters\nWork Reference Number of collaborative works"
					},
					"activity_type": {
						"$ref": "#/components/schemas/ActivityType"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"application_type": {
						"$ref": "#/components/schemas/ApplicationType"
					},
					"collaboration_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/CollaborationType"
							}
						],
						"nullable": true,
						"description": "Required if collaborative_working = true"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"early_start_pre_approval": {
						"type": "boolean",
						"nullable": true,
						"description": "See business rules section 3.4.6 - Early start"
					},
					"pre_approval_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 500 characters"
					},
					"pre_approval_authoriser": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = true\nMax length 100 characters"
					},
					"early_start_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if early_start_pre_approval = false\nMax length 500 characters"
					},
					"work_type": {
						"$ref": "#/components/schemas/WorkType"
					},
					"is_ttro_required": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is planned"
					},
					"immediate_risk": {
						"type": "boolean",
						"nullable": true,
						"description": "Required when work_type is immediate"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootway"
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpath"
					},
					"permit_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASD"
						},
						"type": "array",
						"nullable": true
					},
					"additional_contact": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"hs2_highway_emails": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true,
						"description": "Array Max length 2 items\nArray values must be valid email addresses\nArray values max length 100 characters"
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nRequired if traffic_management_type = 'multi_way_signals' or 'two_way_signals'"
					},
					"permit_alteration_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"secondary_contact",
					"secondary_contact_number",
					"proposed_start_date",
					"proposed_end_date",
					"description_of_work",
					"excavation",
					"traffic_management_plan",
					"lane_rental_applicable",
					"works_location_description",
					"collaborative_working",
					"activity_type",
					"traffic_management_type",
					"application_type",
					"location_types",
					"work_type",
					"close_footway",
					"close_footpath",
					"permit_alteration_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AlterationStatus": {
				"enum": [
					"submitted",
					"granted",
					"granted_with_duration_challenge",
					"refused",
					"deemed",
					"cancelled",
					"revoked",
					"auto_applied"
				],
				"type": "string"
			},
			"PermitAlterationStatusUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"alteration_status": {
						"$ref": "#/components/schemas/AlterationStatus",
						"description": "Can only be set to granted, refused or granted_with_duration_challenge"
					},
					"assessment_comments": {
						"type": "string",
						"nullable": true,
						"description": "Required if alteration_status = refused or granted_with_duration_challenge\nMax length 1500 characters"
					},
					"assessment_discount": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Required if alteration_status = granted\nIs whole number between 0 and 100 inclusive"
					},
					"reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if alteration_status = granted_with_duration_challenge\nMust be on or after the permit proposed_end_date and before the alteration updated proposed_end_date"
					}
				},
				"required": [
					"alteration_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationResponse": {
				"properties": {
					"permit_alteration_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"deadline_date": {
						"type": "string",
						"format": "date-time"
					},
					"alteration_status": {
						"$ref": "#/components/schemas/AlterationStatusResponse"
					},
					"alteration_status_string": {
						"type": "string"
					},
					"alteration_type": {
						"$ref": "#/components/schemas/AlterationTypeResponse"
					},
					"alteration_type_string": {
						"type": "string"
					},
					"permit_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/PermitStatusResponse"
							}
						],
						"nullable": true
					},
					"permit_status_string": {
						"type": "string",
						"nullable": true
					},
					"assessment_discount": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"assessment_comments": {
						"type": "string",
						"nullable": true
					},
					"permit_alteration_reason": {
						"type": "string"
					},
					"original": {
						"$ref": "#/components/schemas/PermitResponse"
					},
					"proposed": {
						"$ref": "#/components/schemas/PermitResponse"
					},
					"duration_challenge_review_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DurationChallengeReviewStatusResponse"
							}
						],
						"nullable": true
					},
					"duration_challenge_review_status_string": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_reason_for_non_acceptance": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_review_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DurationChallengeNonAcceptanceResponseStatusResponse"
							}
						],
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_status_string": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_details": {
						"type": "string",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_new_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_non_acceptance_response_old_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"duration_challenge_follow_up_review_complete": {
						"type": "boolean",
						"nullable": true
					}
				},
				"required": [
					"permit_alteration_reference_number",
					"date_created",
					"deadline_date",
					"alteration_status",
					"alteration_status_string",
					"alteration_type",
					"alteration_type_string",
					"permit_alteration_reason",
					"original",
					"proposed"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ImposeChangeResponse": {
				"properties": {
					"permit_alteration_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"permit_alteration_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ImposeChangeRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"permit_conditions": {
						"items": {
							"$ref": "#/components/schemas/PermitCondition"
						},
						"type": "array",
						"nullable": true,
						"description": "Array values must be unique"
					},
					"permit_alteration_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"permit_alteration_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationDurationChallengeReviewRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"review_status": {
						"$ref": "#/components/schemas/DurationChallengeReviewStatus",
						"description": "Can only be set to duration_challenge_accepted or duration_challenge_not_accepted"
					},
					"reason_for_non_acceptance": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters\nRequired if review_status = duration_challenge_not_accepted"
					}
				},
				"required": [
					"review_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PermitAlterationDurationChallengeNonAcceptanceResponseRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"non_acceptance_response_status": {
						"$ref": "#/components/schemas/DurationChallengeNonAcceptanceResponseStatus",
						"description": "Can only be set to reasonable_period_end_date_changed or reasonable_period_end_date_not_changed"
					},
					"new_reasonable_period_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if non_acceptance_response_status = reasonable_period_end_date_changed"
					},
					"non_acceptance_response_details": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"non_acceptance_response_status",
					"non_acceptance_response_details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AddFileToWorkRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"description": "Array values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					}
				},
				"required": [
					"file_ids"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ActivityCreateResponse": {
				"properties": {
					"activity_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"activity_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ActivityActivityType": {
				"enum": [
					"skips",
					"scaffolding",
					"hoarding",
					"crane_mobile_platform",
					"event",
					"section50",
					"section58",
					"compound",
					"other"
				],
				"type": "string"
			},
			"ActivityCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"activity_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"activity_name": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"activity_activity_type": {
						"$ref": "#/components/schemas/ActivityActivityType"
					},
					"activity_type_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if activity_activity_type = other\nMax length 100 characters"
					},
					"contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"contact_details": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be in the future"
					},
					"start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must be in the future"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be after start_date"
					},
					"end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must be after start_date"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"activity_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"usrn",
					"activity_coordinates",
					"activity_name",
					"activity_activity_type",
					"start_date",
					"end_date",
					"location_types",
					"activity_location_description",
					"traffic_management_type",
					"collaborative_working"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ActivityActivityTypeResponse": {
				"enum": [
					"skips",
					"scaffolding",
					"hoarding",
					"crane_mobile_platform",
					"event",
					"section50",
					"section58",
					"compound",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ActivityResponse": {
				"properties": {
					"activity_reference_number": {
						"type": "string"
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"street_name": {
						"type": "string",
						"nullable": true
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"activity_coordinates": {},
					"activity_name": {
						"type": "string"
					},
					"activity_activity_type": {
						"$ref": "#/components/schemas/ActivityActivityTypeResponse"
					},
					"activity_activity_type_string": {
						"type": "string"
					},
					"activity_type_details": {
						"type": "string",
						"nullable": true
					},
					"contact_name": {
						"type": "string",
						"nullable": true
					},
					"contact_details": {
						"type": "string",
						"nullable": true
					},
					"start_date": {
						"type": "string",
						"format": "date-time"
					},
					"start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"end_date": {
						"type": "string",
						"format": "date-time"
					},
					"end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"activity_location_description": {
						"type": "string"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementTypeResponse"
					},
					"traffic_management_type_string": {
						"type": "string"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"additional_info": {
						"type": "string",
						"nullable": true
					},
					"cancelled": {
						"type": "boolean"
					},
					"cancelled_reason": {
						"type": "string",
						"nullable": true
					},
					"highway_authority_swa_code": {
						"type": "string"
					}
				},
				"required": [
					"activity_reference_number",
					"usrn",
					"activity_coordinates",
					"activity_name",
					"activity_activity_type",
					"activity_activity_type_string",
					"start_date",
					"end_date",
					"location_types",
					"location_types_string",
					"activity_location_description",
					"traffic_management_type",
					"traffic_management_type_string",
					"collaborative_working",
					"cancelled",
					"highway_authority_swa_code"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ActivityCancelRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"cancellation_reason": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					}
				},
				"type": "object",
				"additionalProperties": false
			},
			"ActivityUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"activity_name": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"activity_activity_type": {
						"$ref": "#/components/schemas/ActivityActivityType"
					},
					"activity_type_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if activity_activity_type = other\nMax length 100 characters"
					},
					"contact_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"contact_details": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be in the future"
					},
					"start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must be in the future"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "Must be after start_date"
					},
					"end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Must be after start_date"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"activity_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"collaborative_working": {
						"type": "boolean"
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"activity_name",
					"activity_activity_type",
					"start_date",
					"end_date",
					"location_types",
					"activity_location_description",
					"traffic_management_type",
					"collaborative_working"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"forward_plan_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"forward_plan_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanWorkType": {
				"enum": [
					"planned",
					"hs2_highway_works"
				],
				"type": "string"
			},
			"ForwardPlanCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 24 characters\nMust be unique in the system\nMust contain only alphanumeric characters, dashes and underscores\nIf not supplied it will be auto-generated"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "start_date must be within five years of end_date"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "end_date must be on or after start_date"
					},
					"description_of_work": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"traffic_management_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TrafficManagementType"
							}
						],
						"nullable": true
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"forward_plan_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASD"
						},
						"type": "array",
						"nullable": true
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"workstream_prefix": {
						"type": "string",
						"nullable": true,
						"description": "Must consist of 3 positive whole numbers"
					},
					"hs2_work_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/ForwardPlanWorkType"
							}
						],
						"nullable": true,
						"description": "Required if promoter_swa_code = '7374'"
					},
					"hs2_in_act_limits": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if promoter_swa_code = '7374'"
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"hs2_highway_exemption": {
						"allOf": [
							{
								"$ref": "#/components/schemas/HS2HighwayExemption"
							}
						],
						"nullable": true,
						"description": "Required if hs2_work_type = 'hs2_highway_works' and hs2_in_act_limits = true"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"start_date",
					"end_date",
					"description_of_work",
					"works_location_description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanWorkTypeResponse": {
				"enum": [
					"planned",
					"hs2_highway_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"ForwardPlanResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"forward_plan_reference_number": {
						"type": "string"
					},
					"start_date": {
						"type": "string",
						"format": "date-time"
					},
					"end_date": {
						"type": "string",
						"format": "date-time"
					},
					"forward_plan_status": {
						"$ref": "#/components/schemas/ForwardPlanStatusResponse"
					},
					"forward_plan_status_string": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"promoter_swa_code": {
						"type": "string"
					},
					"promoter_contact_details": {
						"type": "string"
					},
					"highway_authority": {
						"type": "string"
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"workstream_prefix": {
						"type": "string"
					},
					"works_coordinates": {},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"road_category": {
						"type": "number",
						"format": "double"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"works_location_description": {
						"type": "string"
					},
					"description_of_work": {
						"type": "string"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true
					},
					"traffic_management_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TrafficManagementTypeResponse"
							}
						],
						"nullable": true
					},
					"traffic_management_type_string": {
						"type": "string",
						"nullable": true
					},
					"additional_info": {
						"type": "string",
						"nullable": true
					},
					"forward_plan_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASDResponse"
						},
						"type": "array",
						"nullable": true
					},
					"cancelled_reason": {
						"type": "string",
						"nullable": true
					},
					"hs2_in_act_limits": {
						"type": "boolean",
						"nullable": true
					},
					"hs2_consultation_requested_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"hs2_highway_exemption": {
						"allOf": [
							{
								"$ref": "#/components/schemas/HS2HighwayExemptionResponse"
							}
						],
						"nullable": true
					},
					"hs2_highway_exemption_string": {
						"type": "string",
						"nullable": true
					},
					"hs2_works_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/ForwardPlanWorkTypeResponse"
							}
						],
						"nullable": true
					},
					"hs2_works_type_string": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"work_reference_number",
					"forward_plan_reference_number",
					"start_date",
					"end_date",
					"forward_plan_status",
					"forward_plan_status_string",
					"promoter_organisation",
					"promoter_swa_code",
					"promoter_contact_details",
					"highway_authority",
					"highway_authority_swa_code",
					"workstream_prefix",
					"works_coordinates",
					"street_name",
					"usrn",
					"road_category",
					"date_created",
					"works_location_description",
					"description_of_work"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"start_date": {
						"type": "string",
						"format": "date-time"
					},
					"end_date": {
						"type": "string",
						"format": "date-time",
						"description": "end_date must be on or after start_date"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"description_of_work": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"traffic_management_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TrafficManagementType"
							}
						],
						"nullable": true
					},
					"additional_info": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"forward_plan_asds": {
						"items": {
							"$ref": "#/components/schemas/PermitASD"
						},
						"type": "array",
						"nullable": true
					}
				},
				"required": [
					"works_coordinates",
					"start_date",
					"end_date",
					"works_location_description",
					"description_of_work"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ForwardPlanCancelRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"cancelled_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"cancelled_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81CreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"section_81_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"section_81_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"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"
			},
			"Section81Severity": {
				"enum": [
					"high",
					"low"
				],
				"type": "string"
			},
			"Section81CreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"inspection_date": {
						"type": "string",
						"format": "date-time",
						"description": "Date must be today or a date in the past"
					},
					"section_81_type": {
						"$ref": "#/components/schemas/Section81Type"
					},
					"section_81_severity": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section81Severity"
							}
						],
						"nullable": true,
						"description": "Required if section_81_type is not unattributed_works_completed or unattributed_works_live_site"
					},
					"made_safe_by_ha": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if section_81_type is not unattributed_works_completed or unattributed_works_live_site"
					},
					"inspector_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"inspector_contact_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"additional_details": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"other_type_details": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"reinspection_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date for reinspection_date_time must match the date for reinspection_date\nTime must occur today or a date in the future"
					},
					"section_81_evidence": {
						"type": "boolean"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if section_81_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"location_description",
					"location_types",
					"inspection_date",
					"section_81_type",
					"additional_details",
					"section_81_evidence"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81WorkTypeResponse": {
				"enum": [
					"permit_works",
					"non_notifiable_works",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LinkedPermit": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"permit_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"permit_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81Response": {
				"properties": {
					"section_81_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"location_description": {
						"type": "string"
					},
					"section_81_severity": {
						"$ref": "#/components/schemas/Section81SeverityResponse"
					},
					"section_81_severity_string": {
						"type": "string"
					},
					"section_81_status": {
						"$ref": "#/components/schemas/Section81StatusResponse"
					},
					"section_81_status_string": {
						"type": "string"
					},
					"section_81_type": {
						"$ref": "#/components/schemas/Section81TypeResponse"
					},
					"section_81_type_string": {
						"type": "string"
					},
					"work_reference_number": {
						"type": "string"
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area": {
						"type": "string",
						"nullable": true
					},
					"road_category": {
						"type": "number",
						"format": "double"
					},
					"works_coordinates": {},
					"highway_authority": {
						"type": "string"
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"promoter_swa_code": {
						"type": "string"
					},
					"workstream_prefix": {
						"type": "string"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"inspection_date": {
						"type": "string",
						"format": "date-time"
					},
					"other_type_details": {
						"type": "string",
						"nullable": true
					},
					"made_safe_by_ha": {
						"type": "boolean"
					},
					"inspector_name": {
						"type": "string",
						"nullable": true
					},
					"inspector_contact_number": {
						"type": "string",
						"nullable": true
					},
					"additional_details": {
						"type": "string"
					},
					"status_changed_date": {
						"type": "string",
						"format": "date-time"
					},
					"promoter_response": {
						"type": "string",
						"nullable": true
					},
					"section_81_work_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section81WorkTypeResponse"
							}
						],
						"nullable": true
					},
					"section_81_work_type_string": {
						"type": "string",
						"nullable": true
					},
					"promoter_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section81StatusResponse"
							}
						],
						"nullable": true
					},
					"promoter_status_string": {
						"type": "string",
						"nullable": true
					},
					"promoter_status_changed_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"linked_permit": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LinkedPermit"
							}
						],
						"nullable": true
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					}
				},
				"required": [
					"section_81_reference_number",
					"date_created",
					"location_description",
					"section_81_status",
					"section_81_status_string",
					"work_reference_number",
					"usrn",
					"street_name",
					"road_category",
					"works_coordinates",
					"highway_authority",
					"highway_authority_swa_code",
					"promoter_organisation",
					"promoter_swa_code",
					"workstream_prefix",
					"location_types",
					"location_types_string",
					"inspection_date",
					"section_81_type",
					"section_81_type_string",
					"additional_details",
					"status_changed_date"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section81Status": {
				"enum": [
					"issued",
					"acknowledged",
					"accepted",
					"accepted_fixed",
					"rejected",
					"resolved_by_ha",
					"cancelled"
				],
				"type": "string"
			},
			"Section81WorkType": {
				"enum": [
					"permit_works",
					"non_notifiable_works"
				],
				"type": "string"
			},
			"Section81StatusUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_81_status": {
						"$ref": "#/components/schemas/Section81Status"
					},
					"status_reason": {
						"type": "string",
						"nullable": true,
						"description": "Required if Section81Status = rejected, accepted_fixed, resolved or cancelled\nMax length 500 characters"
					},
					"work_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section81WorkType"
							}
						],
						"nullable": true,
						"description": "Required if Section81Status = accepted"
					}
				},
				"required": [
					"section_81_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section74CreateResponse": {
				"properties": {
					"section_74_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"section_74_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"OverrunWarningReason": {
				"enum": [
					"more_than_five_slg_items_left_on_site",
					"five_or_less_slg_items_left_on_site",
					"open_excavation",
					"spoil_left_on_site",
					"missing_road_markings",
					"missing_street_apparatus",
					"active_traffic_management"
				],
				"type": "string"
			},
			"Section74CreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"permit_reference_number": {
						"type": "string"
					},
					"location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"inspection_date": {
						"type": "string",
						"format": "date-time",
						"description": "Date must be today or a date in the past"
					},
					"overrun_warning_reasons": {
						"items": {
							"$ref": "#/components/schemas/OverrunWarningReason"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"overrun_warning_details": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"officer_name": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"officer_contact_details": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"schedule_follow_up_inspection": {
						"type": "boolean"
					},
					"reinspection_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date for reinspection_date_time must match the date for reinspection_date\nTime must occur today or a date in the future"
					},
					"section_74_evidence": {
						"type": "boolean"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if section_74_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					}
				},
				"required": [
					"permit_reference_number",
					"location_description",
					"location_types",
					"inspection_date",
					"overrun_warning_reasons",
					"overrun_warning_details",
					"officer_name",
					"officer_contact_details",
					"schedule_follow_up_inspection",
					"section_74_evidence"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section74PromoterStatusResponse": {
				"enum": [
					"acknowledge_overrun_warning",
					"site_visited_and_rectified",
					"warning_disputed",
					"acknowledge_draft_invoice",
					"charge_under_review",
					"charge_agreed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section74Response": {
				"properties": {
					"permit_reference_number": {
						"type": "string"
					},
					"section_74_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"overrun_warning_reasons": {
						"items": {
							"$ref": "#/components/schemas/OverrunWarningReasonResponse"
						},
						"type": "array"
					},
					"overrun_warning_reasons_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"ha_status": {
						"$ref": "#/components/schemas/Section74HAStatusResponse"
					},
					"ha_status_string": {
						"type": "string"
					},
					"location_description": {
						"type": "string"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"inspection_date": {
						"type": "string",
						"format": "date-time"
					},
					"overrun_warning_details": {
						"type": "string"
					},
					"officer_name": {
						"type": "string"
					},
					"officer_contact_details": {
						"type": "string"
					},
					"section_74_evidence": {
						"type": "boolean"
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"latest_ha_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"latest_promoter_response_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"latest_ha_additional_details": {
						"type": "string",
						"nullable": true
					},
					"latest_promoter_additional_details": {
						"type": "string",
						"nullable": true
					},
					"ha_reason_for_dispute": {
						"type": "string",
						"nullable": true
					},
					"promoter_reason_for_dispute": {
						"type": "string",
						"nullable": true
					},
					"site_visited_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"site_cleared_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ha_response_number_of_days_overrun": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"draft_invoice_reference": {
						"type": "string",
						"nullable": true
					},
					"invoice_reference": {
						"type": "string",
						"nullable": true
					},
					"draft_invoice_amount": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"final_agreed_amount": {
						"type": "number",
						"format": "double",
						"nullable": true
					},
					"promoter_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Section74PromoterStatusResponse"
							}
						],
						"nullable": true
					},
					"promoter_status_string": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"permit_reference_number",
					"section_74_reference_number",
					"date_created",
					"overrun_warning_reasons",
					"overrun_warning_reasons_string",
					"ha_status",
					"ha_status_string",
					"location_description",
					"location_types",
					"location_types_string",
					"inspection_date",
					"overrun_warning_details",
					"officer_name",
					"officer_contact_details",
					"section_74_evidence"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section74HAStatus": {
				"enum": [
					"warning_issued",
					"charges_ended",
					"warning_disputed",
					"withdrawn",
					"draft_invoice_issued",
					"resolved"
				],
				"type": "string"
			},
			"Section74UpdateHAStatusRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"$ref": "#/components/schemas/Section74HAStatus",
						"description": "Must be a valid enum type"
					},
					"site_cleared_date": {
						"type": "string",
						"format": "date-time",
						"description": "Required when status is charges_ended\nDate must be today or a date in the past"
					},
					"additional_details": {
						"type": "string",
						"description": "Required when status is status is withdrawn\nMax length 500 characters"
					},
					"number_of_days_overrun": {
						"type": "number",
						"format": "double",
						"description": "Required when status is draft_invoice_issued or resolved\nMust be a positive whole number"
					},
					"draft_invoice_amount": {
						"type": "number",
						"format": "double",
						"description": "Required when status is draft_invoice_issued.\nMust be positive number.\nCan contain decimals to two decimal places."
					},
					"draft_invoice_reference": {
						"type": "string",
						"description": "Optional. Valid when status is draft_invoice_issued.\nMax length 100 characters"
					},
					"final_agreed_amount": {
						"type": "number",
						"format": "double",
						"description": "Required when status is resolved.\nMust be positive number.\nCan contain decimals to two decimal places."
					},
					"invoice_reference": {
						"type": "string",
						"description": "Optional. Valid when status is resolved.\nMax length 100 characters"
					},
					"reason_for_dispute": {
						"type": "string",
						"description": "Required when status is warning_disputed.\nMax length 500 characters"
					}
				},
				"required": [
					"status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section74PromoterStatus": {
				"enum": [
					"acknowledge_overrun_warning",
					"site_visited_and_rectified",
					"warning_disputed",
					"acknowledge_draft_invoice",
					"charge_under_review",
					"charge_agreed"
				],
				"type": "string"
			},
			"Section74UpdatePromoterStatusRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"$ref": "#/components/schemas/Section74PromoterStatus",
						"description": "Must be a valid enum type"
					},
					"site_visited_date": {
						"type": "string",
						"format": "date-time",
						"description": "Required when status is site_visited_and_rectified\nDate must be today or a date in the past"
					},
					"additional_details": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"reason_for_dispute": {
						"type": "string",
						"description": "Required when status is warning_disputed.\nMax length 500 characters"
					}
				},
				"required": [
					"status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FinalReinstatementUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"final_reinstatement": {
						"type": "boolean",
						"description": "Whether it is a final reinstatement\nCan only add final_reinstatement if there is an Excavation Site"
					}
				},
				"required": [
					"final_reinstatement"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HistoricFPNCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"fpn_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"fpn_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HistoricFPNCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"historical_permit_reference": {
						"type": "string",
						"description": "Max length 24 characters\nMust be unique in the system, this will become the work_reference_number\nMust contain only alphanumeric characters, dashes and underscores"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"description_of_work": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"work_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must be in the past"
					},
					"work_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must be in the past\nwork_end_date must be after the date and time for work_start_date"
					},
					"fpn_evidence": {
						"type": "boolean",
						"description": "Whether FPN evidence has been supplied"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if fpn_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"offence_date": {
						"type": "string",
						"format": "date-time",
						"description": "offence_date must be in the past"
					},
					"offence_code": {
						"$ref": "#/components/schemas/OffenceCode"
					},
					"offence_details": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"authorised_officer": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"officer_contact_details": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"officer_address": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"representations_contact": {
						"type": "string",
						"description": "Max length 100 characters"
					},
					"representations_contact_address": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"payment_methods": {
						"items": {
							"$ref": "#/components/schemas/PaymentMethod"
						},
						"type": "array"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"historical_permit_reference",
					"works_location_description",
					"fpn_evidence",
					"offence_date",
					"offence_code",
					"offence_details",
					"authorised_officer",
					"officer_contact_details",
					"officer_address",
					"representations_contact",
					"representations_contact_address",
					"payment_methods"
				],
				"type": "object",
				"additionalProperties": false
			},
			"NonNotifiableSiteCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"site_reference_number": {
						"type": "string"
					},
					"reinstatement_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"site_reference_number",
					"reinstatement_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"NonNotifiableSiteCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true,
						"description": "Max length 24 characters\nMust be unique in the system\nMust contain only alphanumeric characters, dashes and underscores\nIf not supplied it will be auto-generated"
					},
					"workstream_prefix": {
						"type": "string",
						"nullable": true,
						"description": "Must consist of 3 positive whole numbers. Default workstream if not provided"
					},
					"reinstatement_type": {
						"$ref": "#/components/schemas/ReinstatementType"
					},
					"reinstatement_status": {
						"$ref": "#/components/schemas/ReinstatementStatus",
						"description": "See business rules section 8.4 - Making interim sites permanent"
					},
					"reinstatement_date": {
						"type": "string",
						"format": "date-time",
						"description": "reinstatement_date must be in the past\nMust be after actual start date\nMust be before actual end date (if entered)"
					},
					"reinstatement_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"secondary_reinstatement_coordinates": {
						"nullable": true,
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon, if provided"
					},
					"location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique\nMust not contain null or undefined values"
					},
					"reinstatement_evidence": {
						"type": "boolean",
						"description": "Whether reinstatement evidence has been supplied"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if reinstatement_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"number_of_holes": {
						"type": "number",
						"format": "double",
						"description": "Must be a number between 0 and 100"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"reinstatement_type",
					"reinstatement_status",
					"reinstatement_date",
					"reinstatement_coordinates",
					"location_description",
					"location_types",
					"reinstatement_evidence",
					"number_of_holes"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HistoricInspectionCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"inspection_reference_number": {
						"type": "string"
					},
					"non_compliance_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"inspection_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HistoricFailureReasonDetails": {
				"properties": {
					"failure_reason": {
						"$ref": "#/components/schemas/FailureReason"
					},
					"site_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"details": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"failure_reason",
					"details"
				],
				"type": "object",
				"additionalProperties": false
			},
			"HistoricInspectionCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"historical_permit_reference": {
						"type": "string",
						"description": "Max length 24 characters\nMust be unique in the system, this will become the work_reference_number\nMust contain only alphanumeric characters, dashes and underscores"
					},
					"works_location_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"description_of_work": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"work_start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must be in the past"
					},
					"work_end_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must be in the past\nwork_end_date must be after the date and time for work_start_date"
					},
					"inspection_type": {
						"$ref": "#/components/schemas/InspectionType"
					},
					"inspection_start_date": {
						"type": "string",
						"format": "date-time",
						"description": "inspection_start_date must be in the past"
					},
					"inspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategory"
							}
						],
						"nullable": true,
						"description": "See business rules section 10.2 - Inspection types and categories"
					},
					"inspection_outcome": {
						"$ref": "#/components/schemas/InspectionOutcome",
						"description": "See business rules section 10.3 - Inspection outcomes"
					},
					"failure_reason_details": {
						"items": {
							"$ref": "#/components/schemas/HistoricFailureReasonDetails"
						},
						"type": "array",
						"nullable": true,
						"description": "See business rules section 10.3 - Inspection outcomes"
					},
					"inspection_outcome_details": {
						"type": "string",
						"nullable": true,
						"description": "Required if inspection_outcome = unable_to_complete_inspection or non_compliant_with_conditions\nMax length 500 characters"
					},
					"was_call_logged": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if inspection_outcome = failed_high and inspection_type = live_site"
					},
					"call_logged_to": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 100 characters"
					},
					"call_logged_reference": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 100 characters"
					},
					"call_logged_summary": {
						"type": "string",
						"nullable": true,
						"description": "Required if was_call_logged = true\nMax length 500 characters"
					},
					"defect_fixed_on_site": {
						"allOf": [
							{
								"$ref": "#/components/schemas/DefectFixedOnsite"
							}
						],
						"nullable": true,
						"description": "Required if inspection_outcome = failed_high and inspection_type = live_site"
					},
					"additional_comments": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"inspection_evidence": {
						"type": "boolean"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true,
						"description": "Required if inspection_evidence = true\nArray values must be unique\nMust not contain null or undefined values\nA file_id can only be associated with one section of Street Manager\nSee API specification Resource Guide > Works API > File upload for more information"
					},
					"reinspection_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Date must occur today or a date in the future"
					},
					"reinspection_date_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "The date for reinspection_date_time must match the date for reinspection_date\nTime must occur today or a date in the future"
					},
					"reinspection_type": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionType"
							}
						],
						"nullable": true,
						"description": "Defaulted to inspection_type value if this and/or reinspection_category are not provided and reinspection_date is provided"
					},
					"reinspection_category": {
						"allOf": [
							{
								"$ref": "#/components/schemas/InspectionCategory"
							}
						],
						"nullable": true,
						"description": "See business rules section 10.2 - Inspection types and categories\nDefaulted to inspection_category value if this and/or reinspection_type are not provided and reinspection_date is provided"
					},
					"username": {
						"type": "string",
						"description": "Max length 100 characters\nShould be populated with the user creating the inspection"
					},
					"inspector_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"made_safe_by_ha": {
						"type": "boolean",
						"nullable": true,
						"description": "Required if inspection_type = section 81 and inspection_outcome = Failed - high or Failed - low"
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"historical_permit_reference",
					"works_location_description",
					"inspection_type",
					"inspection_start_date",
					"inspection_outcome",
					"inspection_evidence",
					"username"
				],
				"type": "object",
				"additionalProperties": false
			},
			"GeographicalAreaCreateResponse": {
				"properties": {
					"file_id": {
						"type": "number",
						"format": "double"
					},
					"geographical_area_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"file_id",
					"geographical_area_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ExcavationCarriedOutUpdateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"excavation_carried_out": {
						"type": "boolean",
						"description": "Whether an excavation was actually required or not\nCan only update excavation_carried_out if excavation was requested in the active permit and work has started\nOnce an excavation reinstatement has been added this field can no longer be updated"
					}
				},
				"required": [
					"excavation_carried_out"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LinkSection81ToPermitResponse": {
				"properties": {
					"section_81_work_reference_number": {
						"type": "string"
					},
					"section_81_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"section_81_work_reference_number",
					"section_81_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"LinkSection81ToPermitRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_81_reference_number": {
						"type": "string",
						"description": "Max length 28 characters"
					}
				},
				"required": [
					"section_81_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"UnlinkSection81FromPermitRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_81_reference_number": {
						"type": "string",
						"description": "Max length 28 characters"
					},
					"unlink_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"section_81_reference_number",
					"unlink_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"ReassignSection81Request": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"new_organisation_reference": {
						"type": "string",
						"description": "Max length 4 characters"
					}
				},
				"required": [
					"new_organisation_reference"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section58CreateResponse": {
				"properties": {
					"section_58_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"section_58_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section58Duration": {
				"enum": [
					"six_months",
					"one_year",
					"two_years",
					"three_years"
				],
				"type": "string"
			},
			"Section58Extent": {
				"enum": [
					"whole_road",
					"part_of_the_road"
				],
				"type": "string"
			},
			"Section58CreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"section_58_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a line string or polygon"
					},
					"contact_organisation": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"contact_details": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"description": "Date must occur today or a date in the future"
					},
					"restriction_duration": {
						"$ref": "#/components/schemas/Section58Duration"
					},
					"restriction_extent": {
						"$ref": "#/components/schemas/Section58Extent"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"additional_information": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					}
				},
				"required": [
					"section_58_coordinates",
					"start_date",
					"restriction_duration",
					"restriction_extent",
					"location_types",
					"highway_authority_swa_code",
					"usrn"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section58StatusResponse": {
				"enum": [
					"proposed",
					"in_force",
					"cancelled",
					"closed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section58DurationResponse": {
				"enum": [
					"six_months",
					"one_year",
					"two_years",
					"three_years",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section58ExtentResponse": {
				"enum": [
					"whole_road",
					"part_of_the_road",
					"upcoming_enum"
				],
				"type": "string"
			},
			"Section58Response": {
				"properties": {
					"section_58_reference_number": {
						"type": "string"
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"section_58_coordinates": {},
					"contact_organisation": {
						"type": "string",
						"nullable": true
					},
					"contact_details": {
						"type": "string",
						"nullable": true
					},
					"start_date": {
						"type": "string",
						"format": "date-time"
					},
					"end_date": {
						"type": "string",
						"format": "date-time"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"additional_information": {
						"type": "string",
						"nullable": true
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"status_change_date": {
						"type": "string",
						"format": "date-time"
					},
					"section_58_status": {
						"$ref": "#/components/schemas/Section58StatusResponse"
					},
					"section_58_status_string": {
						"type": "string"
					},
					"restriction_duration": {
						"$ref": "#/components/schemas/Section58DurationResponse"
					},
					"restriction_duration_string": {
						"type": "string"
					},
					"restriction_extent": {
						"$ref": "#/components/schemas/Section58ExtentResponse"
					},
					"restriction_extent_string": {
						"type": "string"
					},
					"cancellation_reason": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"section_58_reference_number",
					"usrn",
					"street_name",
					"section_58_coordinates",
					"start_date",
					"end_date",
					"location_types",
					"location_types_string",
					"highway_authority_swa_code",
					"status_change_date",
					"section_58_status",
					"section_58_status_string",
					"restriction_duration",
					"restriction_duration_string",
					"restriction_extent",
					"restriction_extent_string"
				],
				"type": "object",
				"additionalProperties": false
			},
			"Section58Status": {
				"enum": [
					"proposed",
					"in_force",
					"cancelled",
					"closed"
				],
				"type": "string"
			},
			"Section58UpdateStatusRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"status": {
						"$ref": "#/components/schemas/Section58Status",
						"description": "Must be a valid enum type"
					},
					"start_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required when status is in_force\nDate must be a valid date"
					},
					"cancellation_reason": {
						"type": "string",
						"nullable": true,
						"description": "Optional. Valid when status is cancelled.\nMax length 500 characters"
					}
				},
				"required": [
					"status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FeeMatrixRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"major_paa_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_work_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"standard_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"minor_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"immediate_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"permit_variation_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_paa_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_work_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"standard_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"minor_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"immediate_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"permit_variation_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"discount_guidance": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"major_paa_fee_traffic_sensitive",
					"major_work_permit_fee_traffic_sensitive",
					"standard_works_permit_fee_traffic_sensitive",
					"minor_works_permit_fee_traffic_sensitive",
					"immediate_works_permit_fee_traffic_sensitive",
					"permit_variation_fee_traffic_sensitive",
					"major_paa_fee_non_traffic_sensitive",
					"major_work_permit_fee_non_traffic_sensitive",
					"standard_works_permit_fee_non_traffic_sensitive",
					"minor_works_permit_fee_non_traffic_sensitive",
					"immediate_works_permit_fee_non_traffic_sensitive",
					"permit_variation_fee_non_traffic_sensitive",
					"discount_guidance"
				],
				"type": "object",
				"additionalProperties": false
			},
			"FeeMatrixResponse": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"major_paa_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_work_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"standard_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"minor_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"immediate_works_permit_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"permit_variation_fee_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_paa_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"major_work_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"standard_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"minor_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"immediate_works_permit_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"permit_variation_fee_non_traffic_sensitive": {
						"type": "number",
						"format": "double"
					},
					"discount_guidance": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"major_paa_fee_traffic_sensitive",
					"major_work_permit_fee_traffic_sensitive",
					"standard_works_permit_fee_traffic_sensitive",
					"minor_works_permit_fee_traffic_sensitive",
					"immediate_works_permit_fee_traffic_sensitive",
					"permit_variation_fee_traffic_sensitive",
					"major_paa_fee_non_traffic_sensitive",
					"major_work_permit_fee_non_traffic_sensitive",
					"standard_works_permit_fee_non_traffic_sensitive",
					"minor_works_permit_fee_non_traffic_sensitive",
					"immediate_works_permit_fee_non_traffic_sensitive",
					"permit_variation_fee_non_traffic_sensitive",
					"discount_guidance"
				],
				"type": "object",
				"additionalProperties": false
			},
			"CreateAncillaryInfoResponse": {
				"properties": {
					"ancillary_info_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"ancillary_info_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AncillaryInfoType": {
				"enum": [
					"portable_traffic_signals_or_other_traffic_controls",
					"site_welfare_facilities",
					"site_compound_or_material_storage",
					"site_compound_for_works"
				],
				"type": "string"
			},
			"CreateAncillaryInfoRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"location_description": {
						"type": "string",
						"nullable": true,
						"description": "Max length 500 characters\nMust be provided if ancillary_info_type is anything other than portable_traffic_signals_or_other_traffic_controls"
					},
					"ancillary_info_description": {
						"type": "string",
						"description": "Max length 500 characters"
					},
					"ancillary_info_coordinates": {
						"items": {},
						"type": "array",
						"description": "Array values must be unique\nEach point must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point\nMax length of 10"
					},
					"usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"description": "Array values must be unique\nIs whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN\nMax length of 25"
					},
					"ancillary_info_type": {
						"$ref": "#/components/schemas/AncillaryInfoType"
					}
				},
				"required": [
					"ancillary_info_description",
					"ancillary_info_coordinates",
					"usrns",
					"ancillary_info_type"
				],
				"type": "object",
				"additionalProperties": false
			},
			"RemoveAncillaryInfoResponse": {
				"properties": {
					"ancillary_info_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"ancillary_info_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"RemoveAncillaryInfoRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"ancillary_info_removal_reason": {
						"type": "string",
						"description": "Max length 500 characters"
					}
				},
				"required": [
					"ancillary_info_removal_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"AncillaryInfoResponse": {
				"properties": {
					"ancillary_info_reference_number": {
						"type": "string"
					},
					"location_description": {
						"type": "string",
						"nullable": true
					},
					"ancillary_info_type": {
						"$ref": "#/components/schemas/AncillaryInfoTypeResponse"
					},
					"ancillary_info_status": {
						"$ref": "#/components/schemas/AncillaryInfoStatusResponse"
					},
					"ancillary_info_type_string": {
						"type": "string"
					},
					"ancillary_info_status_string": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_removed": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ancillary_info_description": {
						"type": "string"
					},
					"ancillary_info_removal_reason": {
						"type": "string",
						"nullable": true
					},
					"ancillary_info_coordinates": {
						"items": {},
						"type": "array"
					},
					"usrns": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array"
					}
				},
				"required": [
					"ancillary_info_reference_number",
					"ancillary_info_type",
					"ancillary_info_status",
					"ancillary_info_type_string",
					"ancillary_info_status_string",
					"date_created",
					"ancillary_info_description",
					"ancillary_info_coordinates",
					"usrns"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetNoticeCreateResponse": {
				"properties": {
					"work_reference_number": {
						"type": "string"
					},
					"private_street_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"work_reference_number",
					"private_street_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetNoticeCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"promoter_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"works_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point, line string or polygon"
					},
					"street_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"road_category": {
						"type": "number",
						"format": "double",
						"nullable": true,
						"description": "Is whole number between 0 and 10 inclusive\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"work_reference_number": {
						"type": "string",
						"nullable": true
					},
					"secondary_contact": {
						"type": "string"
					},
					"secondary_contact_number": {
						"type": "string"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"description_of_work": {
						"type": "string"
					},
					"excavation": {
						"type": "boolean"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true
					},
					"traffic_management_plan": {
						"type": "boolean"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementType"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array"
					},
					"file_ids": {
						"items": {
							"type": "number",
							"format": "double"
						},
						"type": "array",
						"nullable": true
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootway"
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpath"
					},
					"works_location_description": {
						"type": "string"
					},
					"workstream_prefix": {
						"type": "string",
						"nullable": true
					},
					"additional_contact": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true
					}
				},
				"required": [
					"promoter_swa_code",
					"highway_authority_swa_code",
					"works_coordinates",
					"usrn",
					"secondary_contact",
					"secondary_contact_number",
					"proposed_start_date",
					"proposed_end_date",
					"description_of_work",
					"excavation",
					"traffic_management_plan",
					"traffic_management_type",
					"location_types",
					"close_footway",
					"close_footpath",
					"works_location_description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetNoticeResponse": {
				"properties": {
					"private_street_reference_number": {
						"type": "string"
					},
					"proposed_start_date": {
						"type": "string",
						"format": "date-time"
					},
					"proposed_end_date": {
						"type": "string",
						"format": "date-time"
					},
					"private_street_status": {
						"$ref": "#/components/schemas/PrivateStreetStatusResponse"
					},
					"private_street_status_string": {
						"type": "string"
					},
					"work_reference_number": {
						"type": "string"
					},
					"promoter_organisation": {
						"type": "string"
					},
					"promoter_swa_code": {
						"type": "string"
					},
					"secondary_contact": {
						"type": "string"
					},
					"secondary_contact_number": {
						"type": "string"
					},
					"secondary_contact_email": {
						"type": "string",
						"nullable": true
					},
					"proposed_start_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"proposed_end_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"calendar_day_duration": {
						"type": "number",
						"format": "double"
					},
					"working_day_duration": {
						"type": "number",
						"format": "double"
					},
					"description_of_work": {
						"type": "string"
					},
					"excavation": {
						"type": "boolean"
					},
					"project_reference_number": {
						"type": "string",
						"nullable": true
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"usrn": {
						"type": "string"
					},
					"highway_authority": {
						"type": "string"
					},
					"highway_authority_swa_code": {
						"type": "string"
					},
					"works_location_description": {
						"type": "string"
					},
					"works_coordinates": {},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"date_modified": {
						"type": "string",
						"format": "date-time"
					},
					"traffic_management_type": {
						"$ref": "#/components/schemas/TrafficManagementTypeResponse"
					},
					"traffic_management_type_string": {
						"type": "string"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"files": {
						"items": {
							"$ref": "#/components/schemas/FileSummaryResponse"
						},
						"type": "array",
						"nullable": true
					},
					"workstream_prefix": {
						"type": "string"
					},
					"close_footway": {
						"$ref": "#/components/schemas/CloseFootwayResponse"
					},
					"close_footway_string": {
						"type": "string"
					},
					"work_status": {
						"$ref": "#/components/schemas/WorkStatusResponse"
					},
					"work_status_string": {
						"type": "string"
					},
					"additional_contact": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_number": {
						"type": "string",
						"nullable": true
					},
					"additional_contact_email": {
						"type": "string",
						"nullable": true
					},
					"emergency_contact_name": {
						"type": "string",
						"nullable": true
					},
					"emergency_contact_number": {
						"type": "string",
						"nullable": true
					},
					"close_footpath": {
						"$ref": "#/components/schemas/CloseFootpathResponse"
					},
					"close_footpath_string": {
						"type": "string"
					},
					"street_line": {},
					"road_category": {
						"type": "number",
						"format": "double"
					}
				},
				"required": [
					"private_street_reference_number",
					"proposed_start_date",
					"proposed_end_date",
					"private_street_status",
					"private_street_status_string",
					"work_reference_number",
					"promoter_organisation",
					"promoter_swa_code",
					"secondary_contact",
					"secondary_contact_number",
					"calendar_day_duration",
					"working_day_duration",
					"description_of_work",
					"excavation",
					"street_name",
					"usrn",
					"highway_authority",
					"highway_authority_swa_code",
					"works_location_description",
					"works_coordinates",
					"date_created",
					"date_modified",
					"traffic_management_type",
					"traffic_management_type_string",
					"location_types",
					"location_types_string",
					"workstream_prefix",
					"close_footway",
					"close_footway_string",
					"work_status",
					"work_status_string",
					"close_footpath",
					"close_footpath_string",
					"road_category"
				],
				"type": "object",
				"additionalProperties": false
			},
			"PrivateStreetNoticeCancelRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"cancellation_reason": {
						"type": "string"
					}
				},
				"required": [
					"cancellation_reason"
				],
				"type": "object",
				"additionalProperties": false
			},
			"JsmStatusResponse": {
				"enum": [
					"awaiting_agreement",
					"date_and_time_agreed",
					"jsm_not_needed",
					"upcoming_enum"
				],
				"type": "string"
			},
			"NonComplianceResponseStatusResponse": {
				"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",
					"upcoming_enum"
				],
				"type": "string"
			},
			"NonComplianceResponse": {
				"properties": {
					"non_compliance_reference_number": {
						"type": "string"
					},
					"work_reference_number": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"non_compliance_status": {
						"$ref": "#/components/schemas/NonComplianceStatusResponse"
					},
					"non_compliance_status_string": {
						"type": "string"
					},
					"jsm_requested_by": {
						"type": "string",
						"nullable": true
					},
					"jsm_suggested_time": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"jsm_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/JsmStatusResponse"
							}
						],
						"nullable": true
					},
					"jsm_status_string": {
						"type": "string",
						"nullable": true
					},
					"promoter_response_status": {
						"allOf": [
							{
								"$ref": "#/components/schemas/NonComplianceResponseStatusResponse"
							}
						],
						"nullable": true
					},
					"promoter_response_status_string": {
						"type": "string",
						"nullable": true
					},
					"promoter_response_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"promoter_response_additional_details": {
						"type": "string",
						"nullable": true
					},
					"promoter_response_jsm_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ha_response_status": {
						"$ref": "#/components/schemas/NonComplianceResponseStatusResponse"
					},
					"ha_response_status_string": {
						"type": "string"
					},
					"ha_response_update_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"ha_response_additional_details": {
						"type": "string",
						"nullable": true
					},
					"ha_response_jsm_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true
					},
					"latest_inspection": {
						"$ref": "#/components/schemas/InspectionResponse"
					},
					"linked_inspections": {
						"items": {
							"$ref": "#/components/schemas/InspectionSummaryResponse"
						},
						"type": "array"
					},
					"linked_permits": {
						"items": {
							"$ref": "#/components/schemas/PermitSummaryResponse"
						},
						"type": "array",
						"nullable": true
					}
				},
				"required": [
					"non_compliance_reference_number",
					"work_reference_number",
					"date_created",
					"non_compliance_status",
					"non_compliance_status_string",
					"ha_response_status",
					"ha_response_status_string",
					"latest_inspection",
					"linked_inspections"
				],
				"type": "object",
				"additionalProperties": false
			},
			"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"
				],
				"type": "string"
			},
			"NonComplianceResponseStatusRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"non_compliance_response_status": {
						"$ref": "#/components/schemas/NonComplianceResponseStatus"
					},
					"response_details": {
						"type": "string",
						"nullable": true,
						"description": "Required when non_compliance_response_status = 'withdrawn'/'joint_site_meeting_not_needed'\nMax length 500 characters"
					},
					"jsm_suggested_date": {
						"type": "string",
						"format": "date-time",
						"nullable": true,
						"description": "Required if non_compliance_response_status = 'joint_site_meeting_suggested'\nMust be today or in the future"
					}
				},
				"required": [
					"non_compliance_response_status"
				],
				"type": "object",
				"additionalProperties": false
			},
			"MaterialClassificationCreateResponse": {
				"properties": {
					"material_classification_reference_number": {
						"type": "string"
					}
				},
				"required": [
					"material_classification_reference_number"
				],
				"type": "object",
				"additionalProperties": false
			},
			"MaterialClassificationClassification": {
				"enum": [
					"hazardous",
					"non_hazardous"
				],
				"type": "string"
			},
			"HazardousMaterialType": {
				"enum": [
					"coal_tar",
					"total_petroleum_hydrocarbons",
					"ph",
					"heavy_metal",
					"asbestos",
					"other"
				],
				"type": "string"
			},
			"LayerAffected": {
				"enum": [
					"surface_course",
					"sub_base"
				],
				"type": "string"
			},
			"MaterialClassificationCreateRequest": {
				"properties": {
					"internal_user_identifier": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"internal_user_name": {
						"type": "string",
						"nullable": true,
						"description": "Max length 100 characters"
					},
					"highway_authority_swa_code": {
						"type": "string",
						"description": "Max length 4 characters"
					},
					"material_classification_coordinates": {
						"description": "Must be a GeoJSON geometry (using British National Grid easting and northing coordinate pairs) and must be a point\nMandatory field\nSingle GeoJSON Object"
					},
					"street_name": {
						"type": "string",
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"town": {
						"type": "string",
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"area_name": {
						"type": "string",
						"description": "Max length 100 characters\nUse Street Lookup API endpoint /nsg/streets to lookup this information\nIf not provided, populated with NSG data related to supplied USRN"
					},
					"usrn": {
						"type": "number",
						"format": "double",
						"description": "Is whole number between 1000001 and 99999999 inclusive\nSee business rules section 1.4 - USRN"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationType"
						},
						"type": "array",
						"description": "Array values must be unique"
					},
					"file_id": {
						"type": "number",
						"format": "double",
						"description": "Can only be one file\nLimited to 10MBs"
					},
					"material_classification_classification": {
						"$ref": "#/components/schemas/MaterialClassificationClassification",
						"description": "Mandatory"
					},
					"hazardous_material_type": {
						"items": {
							"$ref": "#/components/schemas/HazardousMaterialType"
						},
						"type": "array",
						"description": "Mandatory if material_classification_classification is hazardous"
					},
					"hazardous_material_type_other_description": {
						"type": "string",
						"description": "Mandatory if MaterialClassificationClassification is hazardous and hazardous_material_type is other\nMax 500 chars"
					},
					"layer_affected": {
						"items": {
							"$ref": "#/components/schemas/LayerAffected"
						},
						"type": "array",
						"description": "Mandatory"
					},
					"sample_date": {
						"type": "string",
						"format": "date-time",
						"description": "Mandatory\nMust be today or in the past"
					},
					"location_description": {
						"type": "string",
						"description": "Mandatory"
					}
				},
				"required": [
					"highway_authority_swa_code",
					"material_classification_coordinates",
					"usrn",
					"location_types",
					"material_classification_classification",
					"layer_affected",
					"sample_date",
					"location_description"
				],
				"type": "object",
				"additionalProperties": false
			},
			"MaterialClassificationClassificationResponse": {
				"enum": [
					"hazardous",
					"non_hazardous",
					"upcoming_enum"
				],
				"type": "string"
			},
			"HazardousMaterialTypeResponse": {
				"enum": [
					"coal_tar",
					"total_petroleum_hydrocarbons",
					"ph",
					"heavy_metal",
					"asbestos",
					"other",
					"upcoming_enum"
				],
				"type": "string"
			},
			"LayerAffectedResponse": {
				"enum": [
					"surface_course",
					"sub_base",
					"upcoming_enum"
				],
				"type": "string"
			},
			"MaterialClassificationResponse": {
				"properties": {
					"material_classification_reference_number": {
						"type": "string"
					},
					"material_classification_coordinates": {},
					"material_classification_classification": {
						"$ref": "#/components/schemas/MaterialClassificationClassificationResponse"
					},
					"material_classification_classification_string": {
						"type": "string"
					},
					"hazardous_material_type": {
						"items": {
							"$ref": "#/components/schemas/HazardousMaterialTypeResponse"
						},
						"type": "array",
						"nullable": true
					},
					"hazardous_material_type_string": {
						"items": {
							"type": "string"
						},
						"type": "array",
						"nullable": true
					},
					"hazardous_material_type_other_description": {
						"type": "string",
						"nullable": true
					},
					"layer_affected": {
						"items": {
							"$ref": "#/components/schemas/LayerAffectedResponse"
						},
						"type": "array"
					},
					"layer_affected_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"location_types": {
						"items": {
							"$ref": "#/components/schemas/LocationTypeResponse"
						},
						"type": "array"
					},
					"location_types_string": {
						"items": {
							"type": "string"
						},
						"type": "array"
					},
					"sample_date": {
						"type": "string",
						"format": "date-time"
					},
					"location_description": {
						"type": "string"
					},
					"date_created": {
						"type": "string",
						"format": "date-time"
					},
					"ha_swa_code": {
						"type": "string"
					},
					"ha_organisation_name": {
						"type": "string"
					},
					"usrn": {
						"type": "number",
						"format": "double"
					},
					"street_name": {
						"type": "string"
					},
					"town": {
						"type": "string",
						"nullable": true
					},
					"area_name": {
						"type": "string",
						"nullable": true
					},
					"raised_by_swa_code": {
						"type": "string"
					},
					"raised_by_organisation_name": {
						"type": "string"
					},
					"file": {
						"allOf": [
							{
								"$ref": "#/components/schemas/FileSummaryResponse"
							}
						],
						"nullable": true
					}
				},
				"required": [
					"material_classification_reference_number",
					"material_classification_coordinates",
					"material_classification_classification",
					"material_classification_classification_string",
					"layer_affected",
					"layer_affected_string",
					"location_types",
					"location_types_string",
					"sample_date",
					"location_description",
					"date_created",
					"ha_swa_code",
					"ha_organisation_name",
					"usrn",
					"street_name",
					"raised_by_swa_code",
					"raised_by_organisation_name"
				],
				"type": "object",
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"token": {
				"type": "apiKey",
				"name": "token",
				"in": "header"
			}
		}
	},
	"info": {
		"title": "Street Manager API",
		"version": "1.0.0",
		"description": "See API specification Resource Guide > Work 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": {
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}": {
			"get": {
				"operationId": "GetPermit",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PermitResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 3.4 - PAA and permit applications (PA)\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/permits": {
			"post": {
				"operationId": "CreatePermit",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PermitCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"description": "See business rules section 3.4 - PAA and permit applications (PA)\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/status": {
			"put": {
				"operationId": "UpdatePermitStatus",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 3.4.9 - Cancelling PAA & PA\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitStatusUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/assessment": {
			"put": {
				"operationId": "UpdateAssessmentStatus",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rule section 5 - Revoking a PA\nSee business rule section 3.4.7 - PAA & PA assessment decision options\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAssessmentUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/permit-discount": {
			"put": {
				"operationId": "UpdatePermitDiscount",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitDiscountUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/lane-rental-assessments": {
			"put": {
				"operationId": "UpdatePermitLaneRentalAssessment",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"description": "See business rule section 12.2 - Adding a lane rental assessment to a PA\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitLaneRentalAssessmentUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/hs2_acknowledgement": {
			"put": {
				"operationId": "AcknowledgeHS2Permit",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "Authenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/HS2AcknowledgementRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/duration-challenge-review": {
			"put": {
				"operationId": "UpdatePermitDurationChallengeReview",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 21.1 - Duration challenge review\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitDurationChallengeReviewRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/duration-challenge-non-acceptance-response": {
			"put": {
				"operationId": "UpdatePermitDurationChallengeNonAcceptanceResponse",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 21.1 - Duration challenge review\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitDurationChallengeNonAcceptanceResponseRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/current-traffic-management-type": {
			"put": {
				"operationId": "UpdateCurrentTrafficManagementType",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CurrentTrafficManagementTypeRequest"
							}
						}
					}
				}
			}
		},
		"/permits/category": {
			"get": {
				"operationId": "GetWorkCategory",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WorkCategoryResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 3.4.3 - Works categories\nUtility endpoint. Can be used to check what category will be assigned to a permit\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority",
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "query",
						"name": "work_type",
						"required": true,
						"schema": {
							"$ref": "#/components/schemas/WorkType"
						}
					},
					{
						"in": "query",
						"name": "proposed_start_date",
						"required": false,
						"schema": {
							"format": "date-time",
							"type": "string"
						}
					},
					{
						"in": "query",
						"name": "proposed_end_date",
						"required": false,
						"schema": {
							"format": "date-time",
							"type": "string"
						}
					},
					{
						"in": "query",
						"name": "is_ttro_required",
						"required": false,
						"schema": {
							"type": "boolean"
						}
					},
					{
						"in": "query",
						"name": "immediate_risk",
						"required": false,
						"schema": {
							"type": "boolean"
						}
					},
					{
						"in": "query",
						"name": "work_reference_number",
						"required": false,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "query",
						"name": "activity_type",
						"required": false,
						"schema": {
							"$ref": "#/components/schemas/ActivityType"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/earliest-permit": {
			"get": {
				"operationId": "GetEarliestPermit",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PermitSummaryResponse"
								}
							}
						}
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/under-assessment": {
			"put": {
				"operationId": "MarkPermitAsUnderAssessment",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": false,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/MarkPermitAsUnderAssessmentRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/link-non-compliance": {
			"put": {
				"operationId": "LinkPermitToNonCompliance",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitNonComplianceLinkRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}": {
			"get": {
				"operationId": "GetWork",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WorkResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 3 - Works submissions and applications\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works": {
			"post": {
				"operationId": "CreateWork",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WorkCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"description": "See business rules section 3 - Works submissions and applications\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/WorkCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/start": {
			"put": {
				"operationId": "UpdateActualStartDate",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 6.1 - Logging works start\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/WorkStartUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/revert-start": {
			"put": {
				"operationId": "RevertActualStartDate",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 6.2 - Reverting works start\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/WorkStartRevertRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/stop": {
			"put": {
				"operationId": "UpdateActualStopDate",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 6.3 - Logging works stop\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/WorkStopUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/revert-stop": {
			"put": {
				"operationId": "RevertActualStopDate",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 6.4 - Reverting works stop\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/WorkStopRevertRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/history": {
			"get": {
				"operationId": "GetWorkHistory",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WorkHistoryResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 7.2 - Works history\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "query",
						"name": "offset",
						"required": false,
						"schema": {
							"format": "double",
							"type": "number"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/sites": {
			"post": {
				"operationId": "CreateSite",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/SiteCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SiteCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/sites/{siteReferenceNumber}": {
			"get": {
				"operationId": "GetSite",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/SiteResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "siteReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/sites/{siteReferenceNumber}/subsume": {
			"put": {
				"operationId": "SubsumeSite",
				"responses": {
					"204": {
						"description": "No content"
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "siteReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SubsumeSiteRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/sites/{siteReferenceNumber}/reinstatements": {
			"post": {
				"operationId": "CreateReinstatement",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ReinstatementCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "siteReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ReinstatementCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/sites/{siteReferenceNumber}/reinstatements/{reinstatementReferenceNumber}": {
			"delete": {
				"operationId": "DeleteReinstatement",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "siteReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "reinstatementReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/inspections/{inspectionReferenceNumber}": {
			"get": {
				"operationId": "GetInspection",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/InspectionResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 10 - Inspections and non-compliance\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "inspectionReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"delete": {
				"operationId": "DeleteInspection",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"description": "Authenticated user must have one of the following roles: HighwayAuthority",
				"deprecated": true,
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "inspectionReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/inspections": {
			"post": {
				"operationId": "CreateInspection",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/InspectionCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 10 - Inspections and non-compliance\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InspectionCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/inspections/{inspectionReferenceNumber}/withdraw": {
			"put": {
				"operationId": "WithdrawInspection",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 10 - Inspections and non-compliance\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "inspectionReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InspectionWithdrawRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/inspections/{inspectionReferenceNumber}/status": {
			"put": {
				"operationId": "UpdateInspectionOutcomeStatus",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 10 - Inspections and non-compliance\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "inspectionReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/InspectionOutcomeStatusRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/scheduled-inspections": {
			"delete": {
				"operationId": "DeleteScheduledInspection",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "Authenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"post": {
				"operationId": "CreateScheduledInspection",
				"responses": {
					"201": {
						"description": "Created"
					}
				},
				"description": "See business rules section 10.4 - Scheduling inspections\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ScheduledInspectionCreateRequest"
							}
						}
					}
				}
			}
		},
		"/authenticate": {
			"post": {
				"operationId": "Authenticate",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AuthenticationResponse"
								}
							}
						}
					}
				},
				"description": "If authenticating for the first time with a temporary password, a 307 Temporary Redirect to `/authenticate/initial` will be returned,\nwhich can be called with the same request body.\n\nA sessionToken property may be returned from this redirect endpoint, which can be used to set a permanent password with the `/set-password`\nendpoint on the Party API.\n\nSee API specification Security section for more information.",
				"security": [],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/AuthenticationRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/fixed-penalty-notices/{fpnReferenceNumber}": {
			"get": {
				"operationId": "GetFPN",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/FPNResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 11 - Fixed penalty notice (FPN)\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "fpnReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"delete": {
				"operationId": "DeleteFPN",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"description": "See business rules section 11 - Fixed penalty notice (FPN)\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "fpnReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/fixed-penalty-notices": {
			"post": {
				"operationId": "CreateFPN",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/FPNCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 11 - Fixed penalty notice (FPN)\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/FPNCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/fixed-penalty-notices/{fpnReferenceNumber}/status": {
			"put": {
				"operationId": "UpdateFPNStatus",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 11.2 - FPN statuses\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "fpnReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/FPNStatusUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/comments": {
			"post": {
				"operationId": "PostComment",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CommentCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 7.1 - Commenting on a works record\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CommentCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/comments/{commentReferenceNumber}/read": {
			"put": {
				"operationId": "MarkCommentAsRead",
				"responses": {
					"201": {
						"description": "Created"
					}
				},
				"description": "See business rules section 7.1 - Commenting on a works record\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "commentReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CommentReadRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/comments/{commentReferenceNumber}": {
			"get": {
				"operationId": "GetComment",
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CommentResponse"
								}
							}
						}
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "commentReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/duration": {
			"get": {
				"operationId": "CalculateDuration",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DurationCalculationResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 1.2 - Dates and times\nSee glossary - Working day\nUtility endpoint. Can be used to check what durations will be assigned to a work/permit based on start and end date\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "query",
						"name": "startDate",
						"required": false,
						"schema": {
							"format": "date-time",
							"type": "string"
						}
					},
					{
						"in": "query",
						"name": "endDate",
						"required": false,
						"schema": {
							"format": "date-time",
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations": {
			"post": {
				"operationId": "CreatePermitAlteration",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PermitAlterationCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"description": "See business rules section 4 - Change requests (CR)\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAlterationCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations/{permitAlterationReferenceNumber}/status": {
			"put": {
				"operationId": "UpdatePermitAlterationStatus",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 4.7 - Change request statuses\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitAlterationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAlterationStatusUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations/{permitAlterationReferenceNumber}": {
			"get": {
				"operationId": "GetPermitAlteration",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PermitAlterationResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 4 - Change requests (CR)\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitAlterationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations/impose": {
			"post": {
				"operationId": "ImposeChange",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ImposeChangeResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 4 - Change requests (CR)\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ImposeChangeRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations/{permitAlterationReferenceNumber}/duration-challenge-review": {
			"put": {
				"operationId": "DurationChallengeReview",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 21.1 - Duration challenge review\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitAlterationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAlterationDurationChallengeReviewRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/alterations/{permitAlterationReferenceNumber}/duration-challenge-non-acceptance-response": {
			"put": {
				"operationId": "DurationChallengeNonAcceptanceResponse",
				"responses": {
					"204": {
						"description": "No Content"
					},
					"404": {
						"description": "Not Found"
					}
				},
				"description": "See business rules section 21.2 - Duration challenge non acceptance response\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitAlterationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PermitAlterationDurationChallengeNonAcceptanceResponseRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/files": {
			"post": {
				"operationId": "AddFileToWork",
				"responses": {
					"201": {
						"description": "Created"
					}
				},
				"description": "See API specification Resource Guide > Works API > File upload for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/AddFileToWorkRequest"
							}
						}
					}
				}
			}
		},
		"/activity": {
			"post": {
				"operationId": "CreateActivity",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActivityCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 9 - Activities\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActivityCreateRequest"
							}
						}
					}
				}
			}
		},
		"/activity/{activityReferenceNumber}": {
			"get": {
				"operationId": "GetActivity",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActivityResponse"
								}
							}
						}
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "activityReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateActivity",
				"responses": {
					"204": {
						"description": "Altered"
					}
				},
				"description": "Authenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "activityReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActivityUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/activity/{activityReferenceNumber}/cancel": {
			"put": {
				"operationId": "CancelActivity",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "Authenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "activityReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ActivityCancelRequest"
							}
						}
					}
				}
			}
		},
		"/forward-plans": {
			"post": {
				"operationId": "CreateForwardPlan",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ForwardPlanCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"description": "See business rules section 3.3 - Forward plans\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ForwardPlanCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/forward-plans/{forwardPlanReferenceNumber}": {
			"get": {
				"operationId": "GetForwardPlan",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ForwardPlanResponse"
								}
							}
						}
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "forwardPlanReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			},
			"put": {
				"operationId": "UpdateForwardPlan",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 3.3 - Forward plans\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "forwardPlanReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ForwardPlanUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/forward-plans/{forwardPlanReferenceNumber}/cancel": {
			"put": {
				"operationId": "CancelForwardPlan",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "forwardPlanReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ForwardPlanCancelRequest"
							}
						}
					}
				}
			}
		},
		"/section-81-works/section-81s": {
			"post": {
				"operationId": "CreateSection81",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section81CreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 14.3 - Adding S81s\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section81CreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/section-81s/{section81ReferenceNumber}": {
			"get": {
				"operationId": "GetSection81",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section81Response"
								}
							}
						}
					}
				},
				"description": "See business rules section 14 - Section 81 (S81)\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section81ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/section-81s/{section81ReferenceNumber}/status": {
			"put": {
				"operationId": "UpdateSection81Status",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 14.5 - S81 statuses\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section81ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section81StatusUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/section-74s": {
			"post": {
				"operationId": "CreateSection74",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section74CreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 20 - Section 74s\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section74CreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/section-74s/{section74ReferenceNumber}": {
			"get": {
				"operationId": "GetSection74",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section74Response"
								}
							}
						}
					}
				},
				"description": "See business rules section 20 - Section 74s\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section74ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/section-74s/{section74ReferenceNumber}/highway-authority-status": {
			"put": {
				"operationId": "UpdateSection74HAStatus",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 20 - Section 74s\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section74ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section74UpdateHAStatusRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/section-74s/{section74ReferenceNumber}/promoter-status": {
			"put": {
				"operationId": "UpdateSection74PromoterStatus",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 20 - Section 74s\nAuthenticated user must have one of the following roles: Planner or Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section74ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section74UpdatePromoterStatusRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/final-reinstatement": {
			"put": {
				"operationId": "UpdateFinalReinstatement",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 8.3 - Adding reinstatements",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/FinalReinstatementUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/historic-works/fixed-penalty-notices": {
			"post": {
				"operationId": "CreateHistoricFPN",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/HistoricFPNCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 15 - Historical works\nSee business rules section 11.2 - FPN statuses\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/HistoricFPNCreateRequest"
							}
						}
					}
				}
			}
		},
		"/non-notifiable-works/sites": {
			"post": {
				"operationId": "CreateNonNotifiableSite",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/NonNotifiableSiteCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 8 - Sites and reinstatements\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/NonNotifiableSiteCreateRequest"
							}
						}
					}
				}
			}
		},
		"/historic-works/inspections": {
			"post": {
				"operationId": "CreateHistoricInspection",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/HistoricInspectionCreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 15 - Historical works\nSee business rules section 10 - Inspections and non-compliance\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/HistoricInspectionCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/excavation-carried-out": {
			"put": {
				"operationId": "UpdateExcavationCarriedOut",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ExcavationCarriedOutUpdateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/link-section-81": {
			"post": {
				"operationId": "LinkSection81ToPermit",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/LinkSection81ToPermitResponse"
								}
							}
						}
					}
				},
				"description": "Creates a link between a Permit and a Section 81\nAuthenticated user must have one of the following roles: Planner, Contractor\nThe Permit and Section 81 must both exist already, not have any existing links created, and the authenticated user\nmust have write access to the associated workstreams for both.",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/LinkSection81ToPermitRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/unlink-section-81": {
			"post": {
				"operationId": "UnlinkSection81FromPermit",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"description": "Removes a link between a Permit and a Section 81\nAuthenticated user must have one of the following roles: Planner, Contractor\nThe Permit and Section 81 must both exist already, have a link created between them, and the authenticated user\nmust have write access to the associated workstreams for both.",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/UnlinkSection81FromPermitRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/section-81s/{section81ReferenceNumber}/reassign-section-81": {
			"put": {
				"operationId": "ReassignSection81",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 14 - Section 81\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "section81ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ReassignSection81Request"
							}
						}
					}
				}
			}
		},
		"/section-58s": {
			"post": {
				"operationId": "CreateSection58",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section58CreateResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 22 - Section 58s\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section58CreateRequest"
							}
						}
					}
				}
			}
		},
		"/section-58s/{section58ReferenceNumber}": {
			"get": {
				"operationId": "GetSection58",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Section58Response"
								}
							}
						}
					}
				},
				"description": "See business rules section 22 - Section 58s\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "section58ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/section-58s/{section58ReferenceNumber}/status": {
			"put": {
				"operationId": "UpdateSection58Status",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See business rules section 22 - Section 58s\nAuthenticated user must have one of the following roles: HighwayAuthority",
				"security": [
					{
						"token": [
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "section58ReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Section58UpdateStatusRequest"
							}
						}
					}
				}
			}
		},
		"/fee-matrix/{organisationReference}": {
			"get": {
				"operationId": "GetFeeMatrix",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/FeeMatrixResponse"
								}
							}
						}
					}
				},
				"description": "Authenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority",
							"Admin"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "organisationReference",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/ancillary-informations": {
			"post": {
				"operationId": "CreateAncillaryInfo",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateAncillaryInfoResponse"
								}
							}
						}
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateAncillaryInfoRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/ancillary-informations/{ancillaryInformationReferenceNumber}/remove": {
			"put": {
				"operationId": "RemoveAncillaryInfo",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/RemoveAncillaryInfoResponse"
								}
							}
						}
					},
					"412": {
						"description": "Precondition Failed"
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "ancillaryInformationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/RemoveAncillaryInfoRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/permits/{permitReferenceNumber}/ancillary-informations/{ancillaryInformationReferenceNumber}": {
			"get": {
				"operationId": "GetAncillaryInfo",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AncillaryInfoResponse"
								}
							}
						}
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "permitReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "ancillaryInformationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/private-street-notices": {
			"post": {
				"operationId": "CreatePrivateStreetNotice",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PrivateStreetNoticeCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"description": "See business rules section 2.1.7 - Works on private streets\nAuthenticated user must have one of the following roles: Planner, Contractor",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PrivateStreetNoticeCreateRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/private-street-notices/{privateStreetReferenceNumber}": {
			"get": {
				"operationId": "GetPrivateStreetNotice",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/PrivateStreetNoticeResponse"
								}
							}
						}
					}
				},
				"description": "See business rules section 2.1.7 - Works on private streets\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					},
					{
						"in": "path",
						"name": "privateStreetReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/private-street-notices/{privateStreetReferenceNumber}/cancel": {
			"put": {
				"operationId": "CancelPrivateStreetNotice",
				"responses": {
					"204": {
						"description": "No content"
					}
				},
				"description": "See business rules section 2.1.7 - Works on private streets\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					},
					{
						"in": "path",
						"name": "privateStreetReferenceNumber",
						"required": true,
						"schema": {
							"type": "string",
							"maxLength": 100
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/PrivateStreetNoticeCancelRequest"
							}
						}
					}
				}
			}
		},
		"/works/{workReferenceNumber}/non-compliances/{nonComplianceReferenceNumber}": {
			"get": {
				"operationId": "GetNonCompliance",
				"responses": {
					"200": {
						"description": "Ok",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/NonComplianceResponse"
								}
							}
						}
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "nonComplianceReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/works/{workReferenceNumber}/non-compliances/{nonComplianceReferenceNumber}/status": {
			"put": {
				"operationId": "UpdateNonComplianceStatus",
				"responses": {
					"204": {
						"description": "No Content"
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "workReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					},
					{
						"in": "path",
						"name": "nonComplianceReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/NonComplianceResponseStatusRequest"
							}
						}
					}
				}
			}
		},
		"/material-classifications": {
			"post": {
				"operationId": "CreateMaterialsClassification",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/MaterialClassificationCreateResponse"
								}
							}
						}
					},
					"409": {
						"description": "Conflict"
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/MaterialClassificationCreateRequest"
							}
						}
					}
				}
			}
		},
		"/material-classifications/{materialClassificationReferenceNumber}": {
			"get": {
				"operationId": "GetMaterialClassification",
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/MaterialClassificationResponse"
								}
							}
						}
					},
					"404": {
						"description": "Not Found"
					}
				},
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "materialClassificationReferenceNumber",
						"required": true,
						"schema": {
							"type": "string"
						}
					}
				]
			}
		},
		"/files": {
			"post": {
				"operationId": "UploadFile",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/FileSummaryResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Works API > File upload for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority",
							"Admin"
						]
					}
				],
				"parameters": [
					{
						"in": "query",
						"name": "swaCode",
						"schema": {
							"type": "string"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"multipart/form-data": {
							"schema": {
								"type": "object",
								"properties": {
									"file": {
										"type": "string",
										"format": "binary"
									}
								}
							}
						}
					}
				}
			}
		},
		"/files/{fileId}": {
			"delete": {
				"operationId": "DeleteFile",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See API specification Resource Guide > Works API > File upload for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority",
							"Admin"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "fileId",
						"required": true,
						"schema": {
							"format": "double",
							"type": "number"
						}
					}
				]
			},
			"get": {
				"operationId": "GetFile",
				"description": "See API specification Resource Guide > Works API > File upload for more information\nAuthenticated user must have one of the following roles: Planner, Contractor, HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Planner",
							"Contractor",
							"HighwayAuthority",
							"Admin"
						]
					}
				],
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"application/vnd.msword": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							},
							"application/pdf": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							},
							"image/png": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							},
							"image/jpeg": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							},
							"image/tiff": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							},
							"image/bmp": {
								"schema": {
									"type": "string",
									"format": "binary"
								}
							}
						}
					},
					"204": {
						"description": "No content"
					}
				},
				"parameters": [
					{
						"in": "path",
						"name": "fileId",
						"schema": {
							"type": "integer"
						},
						"required": true
					}
				]
			}
		},
		"/geographical-areas": {
			"post": {
				"operationId": "CreateGeographicalArea",
				"responses": {
					"201": {
						"description": "Created",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GeographicalAreaCreateResponse"
								}
							}
						}
					}
				},
				"description": "See API specification Resource Guide > Works API > Geographical Areas for more information\nAuthenticated user must have one of the following roles: HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Admin",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [],
				"requestBody": {
					"required": true,
					"content": {
						"multipart/form-data": {
							"schema": {
								"type": "object",
								"properties": {
									"file": {
										"type": "string",
										"format": "binary"
									},
									"internalUserIdentifier": {
										"type": "string"
									},
									"internalUserName": {
										"type": "string"
									}
								}
							}
						}
					}
				}
			}
		},
		"/geographical-areas/{geographicalAreaReferenceNumber}": {
			"put": {
				"operationId": "UpdateGeographicalArea",
				"responses": {
					"204": {
						"description": ""
					}
				},
				"description": "See API specification Resource Guide > Works API > Geographical Areas for more information\nAuthenticated user must have one of the following roles: HighwayAuthority, Admin",
				"security": [
					{
						"token": [
							"Admin",
							"HighwayAuthority"
						]
					}
				],
				"parameters": [
					{
						"in": "path",
						"name": "geographicalAreaReferenceNumber",
						"schema": {
							"type": "string"
						},
						"required": true
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"multipart/form-data": {
							"schema": {
								"type": "object",
								"properties": {
									"file": {
										"type": "string",
										"format": "binary"
									},
									"geographicalAreaReferenceNumber": {
										"type": "string"
									},
									"internalUserIdentifier": {
										"type": "string"
									},
									"internalUserName": {
										"type": "string"
									}
								}
							}
						}
					}
				}
			}
		}
	}
}