Key differences between V5 and V6
This document details the key differences between V5 API and V6 API. This is not an exhaustive list. For more detail see the Versions and changes
Key differences:
- Change request re-design (v2). More information here.
- New fields added to the requests to support Clash and collaboration management. Applies to
POST /work,POST /works/{workReferenceNumber}/permitsandPOST /works/{workReferenceNumber/permits/{permitReferenceNumber}/alterationsto support collaboration management that will be validated if the existingcollaborative_workingfield is set to true. {: .govuk-body} Fields relating to collaboration management. {: .govuk-body}-
is_primary_promoter?: null | boolean- Required ifcollaborative_working === true- Used to indicate if you are the Primary or Secondary promoter collaborating. -
collaboration_types?: null | CollaborationType[]- Required ifcollaborative_working === trueorothers_can_collaborate_on_work === true- Uses the existingCollaborationTypeenum but now an array rather than a single value. -
primary_promoter_permit_reference_number?: null | string- If secondary promoter (is_primary_promoter = false) then this is used to link to the Primary promoter permit (if known). As this will cause a link between the two permits the PRN must be for a permit that exists - NOTE: In V5 collaborative_works was used to provide the work reference number. -
collaboration_contact_name?: null | string- Required ifcollaborative_working === trueorothers_can_collaborate_on_work === true- Contact info relating to the collaboration, it is required if eithercollaborative_workingoris_primary_promoteris provided. -
collaboration_contact_email?: null | string- Contact info relating to the collaboration, at least one ofcollaboration_contact_emailorcollaboration_contact_phone_numberis required ifcollaborative_workingis true orothers_can_collaborate_on_workis true. -
collaboration_contact_phone_number?: null | string- Contact info relating to the collaboration, at least one ofcollaboration_contact_emailorcollaboration_contact_phone_numberis required ifcollaborative_workingis true orothers_can_collaborate_on_workis true. -
estimated_number_of_network_days_saved?: null | number- Required if secondary promoter (is_primary_promoter = false). -
others_can_collaborate_on_work?: null | boolean- Can be used to indicate if the permit is available for collaboration. -
reason_for_non_collaboration?: null | string- Required if others_can_collaborate_on_work is false. -
can_collaborate_on_work_additional_details?: null | string- Required if others_can_collaborate_on_work is true.
-
- New fields added to the
WorkResponse(active_permit),PermitResponseandPermitAlterationResponse(original and proposed) to support collaboration management. {: .govuk-body} -
New
potential_clash_with_other_works?: null | booleanfield added to thePermitResponseto support clash management, if there were clashes detected on the USRN - SeeGET /potential-clashesendpoint. - New
GET /potential-clashesendpoint to check if there are other works on as specific USRN between the proposed dates. It acceptsusrn,start_dateandend_dateas mandatory query params and returns an array ofwork_reference_number,start_dateandend_date(limited to 25). - Section 81 reassign now creates a new work record for the relevant org. Section81Status enum now had a
reassigned, value. More information here.