Skip to content

Bind an identity a conduit reports to its owner

PUT
/components/{name}/identity-bindings/{key}/{value}
curl --request PUT \
--url https://example.com/api/v1/components/ucc-platform/identity-bindings/ucc-room-id/room-17c-415a \
--header 'Content-Type: application/json' \
--data '{ "owner": "hq.west.level-2.boardroom-a.$sys.av", "owner_kind": "component" }'

Ties this value, reported by the conduit component under this match key, to one owner, a system or a component, so the conduit’s samples naming it land on that owner. One identity on one conduit has exactly one owner: a put naming the owner it is already bound to changes nothing, and one naming a different owner moves it. The match key must be a registered property type (422 otherwise), and the owner a component or a system other than the conduit itself (a location or an outpost owns no observed sample, and a value with no identity already lands on the conduit: each a 422). The value rides the path as one percent-encoded segment, so a value carrying a slash, a space or another reserved character is escaped (room%2F1) and round-trips. A binding writes onto both of its ends, so it costs a write on both: gated by component:update on the conduit, and it also needs the owner’s update (component:update, or system:update for a system, refused with a 403 naming it before anything resolves). Each end resolves in its own tier’s read scope and must be inside its update scope: an end outside the read scope is a non-disclosing 404, one readable but not writable a 403. A move also needs update on the owner it leaves; refused, it says the identity is bound to another owner but never which one.

name
required

Name of the conduit component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

string

Name of the conduit component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

key
required

The match key, a registered property type

string

The match key, a registered property type

value
required

The identity value the conduit reports, 1 to 256 characters

string
>= 1 characters <= 256 characters

The identity value the conduit reports, 1 to 256 characters

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
owner
required

Name or uuid of the owner the identity’s values land on, or a dotted address

string
>= 1 characters
owner_kind
required

What kind of owner the identity names. A component or a system; a location or an outpost owns no observed sample, so neither is an owner here

string
Allowed values: component system

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
conduit
required

Name of the conduit component: the component whose endpoint reports the identity, the path rather than the owner

string
conduit_id
required

The conduit component’s uuid

string
created_at
required

When the binding was made

string format: date-time
key
required

The match key: a registered property type naming what kind of identity the value is (e.g. ucc-room-id)

string
owner_id
required

The owner’s uuid, the address to navigate by

string
owner_kind
required

What kind of owner the identity names: a component or a system

string
Allowed values: component system
owner_name
required

Name of the owner the identity’s values land on

string
value
required

The identity value the conduit reports (e.g. the id a UCC service gives one of the rooms it reports on)

string

Example

{
"$schema": "/api/v1/schemas/IdentityBindingBody.json",
"owner_kind": "component"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}