Skip to main content

Core API V1 to V2 migration guide

Core API V2 changes how Visis, Locations, Tickets and attachment uploads are returned, and removes three endpoints.

Written by Daniel Ferguson

Core API V1 will be deprecated on 01/12/2027 (1 December 2027). Core API V2 changes how Visis, Locations, Tickets and attachment uploads are returned, and removes three endpoints. This article lists every breaking change with before-and-after examples, so you can update your integration or ETL pipeline before V1 is deprecated.

Every other resource behaves exactly as in V1, at the same paths. V1 keeps working while you migrate, so you can move one resource at a time and run both versions side by side.

Before you migrate

V2 is served from /api/core/v2 on your region's domain, and only for companies with Core API V2 enabled.

Core API V2 base URLs

  • AU: https://app.apac.visibuild.com/api/core/v2/

  • EU: https://app.eu.visibuild.com/api/core/v2/

  • US: https://app.us.visibuild.com/api/core/v2/

V1

V2

Base path

/api/core/v1

/api/core/v2

Access

All API clients

Companies with Core API V2 enabled

Changed resources

N/A

visis, locations, tickets, attachments

Removed endpoints

N/A

visi-closures, visi-tags, location-closures

V2 returns 403 Forbidden for a company without V2 access. V1 keeps its current behaviour.

IDs in the examples below are placeholders in the API documentation's sample format. Examples are trimmed to the fields each change touches.

Breaking changes at a glance

There are 11 breaking changes: six touch Visis, two touch Locations and three touch Tickets and attachments. Each one needs a client change before you switch that resource to V2.

#

Resource

Change

1

Visis

locationId becomes locationIds

2

Visis

isRoot replaced by parentVisiId and parentRelativeOrder

3

Visis

incorrect_works and incomplete_works types become issue, and subtypeId can be null

4

Visis

Defects return category: defect

5

Visis

visi-closures endpoint removed

6

Visis

visi-tags endpoint removed

7

Locations

nestedName renamed to fullPathName

8

Locations

location-closures endpoint removed

9

Tickets

visis replaced by visiIds

10

Tickets, attachments

Uploads return id; POST /tickets takes attachmentIds

11

Tickets

Ticket attachments drop key and attachmentId

In the field tables that follow, Added means new in V2, so clients that ignore unknown fields can skip it. Removed means gone from V2, so clients that read it must switch to the replacement shown. Renamed, moved or changed means the same data under a new name, on another endpoint, or with a different type or set of values.

Visis

Changes 1 to 4 affect GET /projects/:projectId/visis.

1. locationId becomes locationIds

A Visi can sit in several locations, so V2 returns every location as an array. locationId is gone.

V1

{
"locationId": "00000000-0000-0000-0004-000000000000"
}

V2

{
"locationIds": ["00000000-0000-0000-0004-000000000000", "00000000-0000-0000-0004-000000000001"]
}

Field

Change

V1

V2

locationId

Removed

uuid

Not present

locationIds

Added

Not present

array of uuid

2. isRoot replaced by parent fields

parentVisiId == null replaces isRoot == true. parentRelativeOrder is the Visi's position among its siblings, and null for a root Visi.

V1

[
{ "id": "00000000-0000-0000-000c-000000000000", "isRoot": true },
{ "id": "00000000-0000-0000-000c-000000000001", "isRoot": false }
]

V2

[
{ "id": "00000000-0000-0000-000c-000000000000", "parentVisiId": null, "parentRelativeOrder": null },
{
"id": "00000000-0000-0000-000c-000000000001",
"parentVisiId": "00000000-0000-0000-000c-000000000000",
"parentRelativeOrder": 0
}
]

Field

Change

V1

V2

isRoot

Removed

boolean

Not present

parentVisiId

Added

Not present

uuid, null for a root Visi

parentRelativeOrder

Added

Not present

integer, null for a root Visi

3. Legacy issue types become issue

V1 translated issue Visis with the Incorrect Works and Incomplete Works subtypes back to legacy types. V2 returns type: issue for every issue-category Visi. Read subtypeId to tell them apart. V2 returns subtypeId as stored, so it can be null. V1 filled in the type's default subtype when a Visi had none.

V1

{
"type": "incorrect_works",
"category": "issue",
"subtypeId": "<incorrect works subtype id>"
}

V2

{
"type": "issue",
"category": "issue",
"subtypeId": "<incorrect works subtype id>"
}

Field

Change

V1 values

V2 values

type

Values changed

inspection, task, hold_point, witness_point, ncr, incomplete_works, incorrect_works, issue, defect

inspection, task, hold_point, witness_point, ncr, issue, defect

subtypeId

Now nullable

uuid, defaulted from the type

uuid or null, as stored

4. Defects return category: defect

V1 returned category: issue for defects, to stay backwards compatible. V2 returns their real category.

V1

{ "type": "defect", "category": "issue" }

V2

{ "type": "defect", "category": "defect" }

Field

Change

V1 values

V2 values

category

Values changed

inspection, issue, task, ncr

inspection, issue, task, ncr, defect

Removed endpoints and renamed fields

5. visi-closures endpoint removed

V2 removes GET /projects/:projectId/visis/:visiId/visi-closures. Rebuild the tree from parentVisiId and parentRelativeOrder on the Visis list (change 2). V2 gives the direct parent only. Walk parentVisiId upwards to find deeper ancestors and the root.

V1 · GET /projects/:projectId/visis/:visiId/visi-closures

{
"visiClosures": [
{
"ancestorId": "00000000-0000-0000-000c-000000000000",
"descendantId": "00000000-0000-0000-000c-000000000001",
"depth": 1,
"order": 0
}
]
}

V2 · GET /projects/:projectId/visis

{
"visis": [
{
"id": "00000000-0000-0000-000c-000000000001",
"parentVisiId": "00000000-0000-0000-000c-000000000000",
"parentRelativeOrder": 0
}
]
}

V1 field

Change

V2 equivalent

visiClosures[].descendantId

Moved

visis[].id

visiClosures[].ancestorId (depth 1)

Renamed and moved

visis[].parentVisiId

visiClosures[].order (depth 1)

Renamed and moved

visis[].parentRelativeOrder

visiClosures[].depth

Removed

Count the parentVisiId hops to the root

Rows with depth 0 or above 1

Removed

Derive them by walking parents

To rebuild a Visi tree:

  1. Page through GET /projects/:projectId/visis and index the Visis by id.

  2. Group each Visi under its parentVisiId. Visis with a null parentVisiId are the roots.

  3. Sort each group of siblings by parentRelativeOrder.

The Visis list returns only Visis your company can read, but parentVisiId can name a parent it cannot. That parent is missing from the list, so treat its children as roots of the tree you can see.

6. visi-tags endpoint removed

V2 removes GET /projects/:projectId/visi-tags. Each Visi now lists its tags in tagIds. Look tags up with GET /tags.

V1 · GET /projects/:projectId/visi-tags, one entry of visiTags

{
"visiId": "00000000-0000-0000-000c-000000000000",
"tagId": "00000000-0000-0000-0005-000000000000",
"createdAt": "2024-12-01T02:00:00Z"
}

V2 · GET /projects/:projectId/visis, one entry of visis

{
"id": "00000000-0000-0000-000c-000000000000",
"tagIds": ["00000000-0000-0000-0005-000000000000", "00000000-0000-0000-0005-000000000001"]
}

V1 field

Change

V2 equivalent

visiTags[].visiId

Moved

visis[].id

visiTags[].tagId

Renamed and moved

visis[].tagIds[]

visiTags[].createdAt

Removed

No equivalent

updatedAt filters on visi-tags

Removed

Filter the Visis list instead

7. nestedName renamed to fullPathName

The value is unchanged: the location's name and its ancestors' names joined with " / ", outermost first, leaving out the root location. This affects GET /projects/:projectId/locations.

V1

{
"name": "Bedroom",
"nestedName": "Level 1 / Apartment 101 / Bedroom"
}

V2

{
"name": "Bedroom",
"fullPathName": "Level 1 / Apartment 101 / Bedroom"
}

Field

Change

V1

V2

nestedName

Renamed

string

Now fullPathName

fullPathName

Added

Not present

string

8. location-closures endpoint removed

V2 removes GET /projects/:projectId/location-closures. Each location now carries parentLocationId, null for the root location, and parentRelativeOrder, its 0-based position among its siblings and null for the root. Walk parentLocationId upwards for deeper ancestors.

V1 · GET /projects/:projectId/location-closures

{
"locationClosures": [
{
"ancestorId": "00000000-0000-0000-0004-000000000000",
"descendantId": "00000000-0000-0000-0004-000000000001",
"depth": 1,
"order": 0
}
]
}

V2 · GET /projects/:projectId/locations

{
"locations": [
{
"id": "00000000-0000-0000-0004-000000000001",
"parentLocationId": "00000000-0000-0000-0004-000000000000",
"parentRelativeOrder": 0
}
]
}

V1 field

Change

V2 equivalent

locationClosures[].descendantId

Moved

locations[].id

locationClosures[].ancestorId (depth 1)

Renamed and moved

locations[].parentLocationId

locationClosures[].order (depth 1)

Renamed and moved

locations[].parentRelativeOrder

locationClosures[].depth

Removed

Count the parentLocationId hops to the root

Rows with depth 0 or above 1

Removed

Derive them by walking parents

To rebuild the location tree:

  1. Page through GET /projects/:projectId/locations and index the locations by id.

  2. Group each location under its parentLocationId. The one with a null parentLocationId is the root.

  3. Sort each group of siblings by parentRelativeOrder.

fullPathName (change 7) already holds each location's path as text, so you may not need the tree for display.

Tickets and attachments

9. visis replaced by visiIds

V1 embedded full Visi objects in each ticket. V2 returns their IDs, with the same visibility filter: only Visis your company can read. Fetch the Visis themselves from the Visis endpoint, which returns the V2 Visi shape described in changes 1 to 6. This affects GET /tickets, GET /tickets/:id and the response of POST /tickets.

V1

{
"id": "00000000-0000-0000-001d-000000000000",
"visis": [
{
"id": "00000000-0000-0000-000c-000000000000",
"alias": "VIS-1",
"title": "Visi 1",
"type": "inspection",
"status": "open"
}
]
}

V2

{
"id": "00000000-0000-0000-001d-000000000000",
"visiIds": ["00000000-0000-0000-000c-000000000000"]
}

Field

Change

V1

V2

visis

Removed

array of V1 Visi objects

Not present

visiIds

Added

Not present

array of uuid

To fetch a ticket's Visis:

  1. Read the ticket's projectId and visiIds.

  2. Page through GET /projects/:projectId/visis for that project. Pass updatedAfter to fetch only what changed since your last sync.

  3. Match the Visis on id. The Visis endpoint has no filter by ID, so keep a local copy of each project's Visis rather than fetching them per ticket.

10. Uploads return id; POST /tickets takes attachmentIds

V1 identified uploads by their S3 storage key. V2 identifies them by attachment ID. The upload flow keeps its three steps:

  1. POST /attachments returns a presigned URL and, in V2, an id.

  2. PUT the file to the presigned URL with the returned headers.

  3. Pass the id in attachmentIds on POST /tickets.

In V2, POST /tickets answers a body containing attachmentKeys with 400 Bad Request.

V1 · POST /attachments response

{
"upload": {
"key": "uploads/example-key/attachment.png",
"filename": "attachment.png",
"url": "https://s3.example.com/bucket/uploads/..",
"headers": { "Content-Type": "image/png" }
}
}

V2 · POST /attachments response

{
"upload": {
"id": "00000000-0000-0000-001a-000000000000",
"filename": "attachment.png",
"url": "https://s3.example.com/bucket/uploads/..",
"headers": { "Content-Type": "image/png" }
}
}

V1 · POST /tickets request body

{
"title": "Water damage in apartment 3B",
"attachmentKeys": [
"uploads/example-key/attachment.png"
]
}

V2 · POST /tickets request body

{
"title": "Water damage in apartment 3B",
"attachmentIds": [
"00000000-0000-0000-001a-000000000000"
]
}

Field

Change

V1

V2

upload.key (response)

Removed

string

Not present

upload.id (response)

Added

Not present

uuid

attachmentKeys (request)

Removed, now a 400

array of string

Not accepted

attachmentIds (request)

Added

Not present

array of uuid

11. Ticket attachments drop key and attachmentId

V2 identifies a ticket attachment by id, which is the ID POST /attachments returned for files uploaded through the API. key and the duplicate attachmentId are gone. This affects GET /tickets/:id/attachments.

V1

{
"id": "00000000-0000-0000-001a-000000000000",
"url": "https://app.visibuild.app/f/attachment/00000000-0000-0000-001a-000000000000",
"key": "attachments/site_photo.jpg",
"attachmentId": "00000000-0000-0000-001a-000000000000"
}

V2

{
"id": "00000000-0000-0000-001a-000000000000",
"url": "https://app.visibuild.app/f/attachment/00000000-0000-0000-001a-000000000000"
}

Field

Change

V1

V2

key

Removed

string

Not present

attachmentId

Removed, same as id

uuid

Not present

Non-breaking changes

V2 adds new fields and always returns optional ticket fields. A client that ignores unknown fields and accepts nulls needs no changes for these. tagIds and the parent fields are covered in changes 2, 6 and 8.

Visis: holdPointMode added

holdPointMode is skippable or unskippable for hold points and null for every other type.

V1

{
"type": "hold_point",
"holdPointSkippedAt": null
}

V2

{
"type": "hold_point",
"holdPointMode": "unskippable",
"holdPointSkippedAt": null
}

Field

Change

V1

V2

holdPointMode

Added

Not present

string or null

Tickets: optional fields are always present

V1 left a key out when it had no value. V2 always sends it, as null. This applies to contact, the name, email and phone inside contact and contacts[], links[].title and rootCauses[].groupName. A client that tests whether a key exists, rather than whether it is null, needs updating. This affects GET /tickets, GET /tickets/:id and the response of POST /tickets.

V1

{
"contacts": [{ "name": "Sarah Johnson" }],
"links": [
{
"id": "00000000-0000-0000-0020-000000000000",
"url": "https://example.visibuild.com/reports/site-report-1234"
}
],
"rootCauses": [{ "id": "00000000-0000-0000-0021-000000000000", "name": "Workmanship" }]
}

V2

{
"contact": null,
"contacts": [{ "name": "Sarah Johnson", "email": null, "phone": null }],
"links": [
{
"id": "00000000-0000-0000-0020-000000000000",
"title": null,
"url": "https://example.visibuild.com/reports/site-report-1234"
}
],
"rootCauses": [
{ "id": "00000000-0000-0000-0021-000000000000", "name": "Workmanship", "groupName": null }
]
}

Field

Change

V1

V2

contact

Always present

object, left out when empty

object or null

name, email, phone in contact and contacts[]

Always present

string, left out when empty

string or null

links[].title

Always present

string, left out when empty

string or null

rootCauses[].groupName

Always present

string, left out when empty

string or null

Need help?

If you'd like to talk through how these changes affect your integration, reach out to your account contact before V1 is deprecated on 01/12/2027.

Related articles:

Did this answer your question?