Ga naar inhoud

Choose where an object's indeling comes from

PUT
/api/v1/objects/{object}/topology
curl --request PUT \
--url https://example.com/api/v1/objects/example/topology \
--header 'Content-Type: application/json' \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E \
--data '{ "source_id": "example", "delegation_id": "example" }'

An own source whose koppeling provides the indeling, or a supplier appointed for it; neither: the locations of each data source. Selections per floor or room resolve against this choice.

object
required
string

The object id, e.g. nl.bag.pand.0014100040022681.

Media typeapplication/json

A source or a delegation; neither: back to the locations of each data source.

object
source_id
string | null
delegation_id
string | null

Example generated

{
"source_id": "example",
"delegation_id": "example"
}

OK.

Media typeapplication/json

Where the indeling of an object comes from, and what it could come from.

object
object
required
string
choice
One of:
null
candidates
required

Own sources whose koppeling provides the indeling, and suppliers appointed for it.

Array<object>
object
kind
required

source or delegation.

string
id
required
string
name
required

The source’s name, or the supplier’s.

string
state

Candidates of kind delegation: the state of the delegation.

string | null

Example generated

{
"object": "example",
"choice": {
"kind": "example",
"id": "example",
"name": "example",
"state": "example"
},
"candidates": [
{
"kind": "example",
"id": "example",
"name": "example",
"state": "example"
}
]
}

The request is not valid.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}