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}/permits
andPOST /works/{workReferenceNumber/permits/{permitReferenceNumber}/alterations
to support collaboration management that will be validated if the existingcollaborative_working
field 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 === true
orothers_can_collaborate_on_work === true
- Uses the existingCollaborationType
enum 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 === true
orothers_can_collaborate_on_work === true
- Contact info relating to the collaboration, it is required if eithercollaborative_working
oris_primary_promoter
is provided. -
collaboration_contact_email?: null | string
- Contact info relating to the collaboration, at least one ofcollaboration_contact_email
orcollaboration_contact_phone_number
is required ifcollaborative_working
is true orothers_can_collaborate_on_work
is true. -
collaboration_contact_phone_number?: null | string
- Contact info relating to the collaboration, at least one ofcollaboration_contact_email
orcollaboration_contact_phone_number
is required ifcollaborative_working
is true orothers_can_collaborate_on_work
is 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),PermitResponse
andPermitAlterationResponse
(original and proposed) to support collaboration management. {: .govuk-body} -
New
potential_clash_with_other_works?: null | boolean
field added to thePermitResponse
to support clash management, if there were clashes detected on the USRN - SeeGET /potential-clashes
endpoint. - New
GET /potential-clashes
endpoint to check if there are other works on as specific USRN between the proposed dates. It acceptsusrn
,start_date
andend_date
as mandatory query params and returns an array ofwork_reference_number
,start_date
andend_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.