Skip to main content
POST
Change a tap's owner

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Body

application/json

Exactly one of user or key.

name
string
required

The tap.

Example:

"stock-prices-tap"

user
string

A username; the tap is stored as owned by session:.

Example:

"ed"

key
string

An issued API key's label. Revoked and unknown keys, the platform's own identities (anonymous, recovery-agent, system, agent) and labels starting session: or tap: are refused; ui is accepted when it is an issued key.

Example:

"sales-agent"

Response

The owner was changed, or already was the one named (changed false, nothing written)

name
string
owner
string
Example:

"sales-agent"

previousOwner
string | null
Example:

"session:ada"

changed
boolean
warnings
string[]

Findings datris doctor reports that do not decide the change (a target pipeline that does not exist, callback reads the new owner's access narrows, a tap secret outside the new owner's tap access), in the doctor rows' words.