Skip to main content
PATCH
/
v1
/
keys
/
{id}
/
assign
Reassign a key’s owner and/or cost-center team
curl --request PATCH \
  --url https://api.example.com/v1/keys/{id}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ownerId": {},
  "teamId": {}
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "ownerId": "550e8400-e29b-41d4-a716-446655440001",
  "teamId": "550e8400-e29b-41d4-a716-446655440002"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
ownerId
object | null

User who owns/uses this key. Omit to leave unchanged; null clears ownership.

teamId
object | null

Cost-center team this key bills to. Omit to leave unchanged; null clears the assignment (falls back to owner’s team in the ledger rollup).

Response

Updated owner/team assignment

id
string
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

ownerId
object | null
required
Example:

"550e8400-e29b-41d4-a716-446655440001"

teamId
object | null
required
Example:

"550e8400-e29b-41d4-a716-446655440002"