Skip to content

Access overrides lost by scans, with the items they may have moved to.

GET
/v1/admin/lost-overrides
curl --request GET \
--url 'https://api.contentsurface.io/v1/admin/lost-overrides?mountFolderId=nod_01j9n4wqr0e008000000000002&reviewed=false&limit=50&cursor=eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0' \
--header 'Authorization: Bearer <token>'

Access overrides scans lost, newest first. A scan loses an override when it finds the item gone from the source and no move key carried it to a new item: a move to another mount folder, a copy then delete, a migration. The item that took its place inherits its parent’s access, which may be wider. Each lost override names up to three live items of the same connection, created since, with the same name or content: open one in the access editor and set the override again where it belongs. An override whose old item was restored is left out. Repository admins.

mountFolderId
string

Only those below this mount folder (nod_…).

Example

nod_01j9n4wqr0e008000000000002
reviewed
boolean

false for those waiting for review, true for reviewed ones; both when left out.

Example

false
limit
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Lost overrides per page, 1–100; default 50.

Example

50
cursor
string

The nextCursor of the previous page.

Example

eyJrIjpbIkZpbmFuY2UiXSwiaSI6IjAxOTI2YTRlIn0

OK

Media typeapplication/json

A page of a keyset-paged list: the items and the cursor to continue from, null on the last page.

object
items
required

The items of this page, in the list’s order.

Array<object>

An access override lost because a scan found its item gone and no move key carried it to a new one.

object
id
required

The lost override (lov_…).

string
nodeId
required

The old item (nod_…); deleted, and removed for good after the retention period.

string
mountFolderId
required

The mount folder it was below (nod_…).

string
name
required

The old item’s name.

string
oldPath
required

Its path in ContentSurface when it was lost.

string
reason
required

The reason the override was set with.

string
grants
required

What the override granted.

Array<object>

One grant of a lost override.

object
labelId
required

The access label (alb_…).

string
label
required

Its name when the override was lost.

string
rights
required

The rights it granted: read.

Array<string>
lostAt
required

When the scan lost it.

string format: date-time
reviewedAt
required

When an admin acknowledged the mount folder’s notice; null while waiting for review.

null | string format: date-time
reviewedBy
required

Who did (usr_…).

null | string
candidates
required

Up to three live items of the same connection, created since, with the same name or content.

Array<object>

A live item that may be where the lost override’s item went.

object
nodeId
required

The item (nod_…): open it in the access editor to apply the override again.

string
path
required

Its path in ContentSurface.

string
sameContent
required

True when its content is the same as the old item’s; otherwise only its name is.

boolean
nextCursor
required

Pass as cursor to read the next page; null on the last page.

null | string
hasMore

True when there is a next page (nextCursor is set).

boolean

Example

{
"items": [
{
"id": "lov_01j9n4xvr0e008000000000001",
"nodeId": "nod_01j9n4wqr0e008000000000004",
"mountFolderId": "nod_01j9n4wqr0e008000000000002",
"name": "Salaries 2026.xlsx",
"oldPath": "/Finance/Finance share/HR/Salaries 2026.xlsx",
"reason": "Salaries for the finance team only.",
"grants": [
{
"labelId": "alb_01j9n4wfr0e008000000000001",
"label": "Finance",
"rights": [
"read"
]
}
],
"lostAt": "2026-11-03T15:12:00+00:00",
"reviewedAt": null,
"reviewedBy": null,
"candidates": [
{
"nodeId": "nod_01j9n4wqr0e008000000000003",
"path": "/Finance/Finance share/Archive/Salaries 2026.xlsx",
"sameContent": true
}
]
}
],
"nextCursor": null,
"hasMore": false
}

The request is not valid: a malformed ID, body, filter or parameter.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

For confirmation-required: what the change would affect, such as the users or folders losing access.

Example

{
"type": "urn:contentsurface:problem:validation-failed",
"title": "The request is not valid.",
"status": 400,
"detail": "'cursor' is not a cursor this API returned.",
"code": "validation-failed",
"field": "cursor"
}

No valid access token, or it no longer holds for the user (suspended, signed out, relation removed).

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

For confirmation-required: what the change would affect, such as the users or folders losing access.

Example

{
"type": "urn:contentsurface:problem:unauthorized",
"title": "Not authenticated.",
"status": 401,
"detail": "A valid access token is required.",
"code": "unauthorized"
}

Authenticated but not allowed: a missing scope or role, an impersonated token on an admin endpoint, or an inactive tenant.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

For confirmation-required: what the change would affect, such as the users or folders losing access.

Example

{
"type": "urn:contentsurface:problem:role-required",
"title": "Not allowed.",
"status": 403,
"detail": "This endpoint requires one of the roles: repositoryAdmin.",
"code": "role-required"
}

Absent: not existing, in another tenant, or not readable by the caller — never distinguished.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

For confirmation-required: what the change would affect, such as the users or folders losing access.

Example

{
"type": "urn:contentsurface:problem:not-found",
"title": "Not found.",
"status": 404,
"detail": "The resource does not exist.",
"code": "not-found"
}

Load protection: the tenant is making too many calls, or running too many searches or content streams, at once. Transient and never a quota; retry after Retry-After seconds.

Media typeapplication/problem+json

RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.

object
type

urn:contentsurface:problem:{code}.

string
title

A short summary for people; may change.

string
status

The HTTP status code.

integer
detail

What happened in this case, for people; may change.

string
code

The stable, machine-readable reason, such as version-mismatch; branch on this.

string
field

For validation-failed: the request field that is not valid.

string
impactToken

For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.

string
impact

For confirmation-required: what the change would affect, such as the users or folders losing access.

Example

{
"type": "urn:contentsurface:problem:too-many-requests",
"title": "Too many requests.",
"status": 429,
"detail": "The tenant is making more API calls than one replica serves at once; retry shortly.",
"code": "too-many-requests",
"retryAfter": 1
}