Skip to content

Link a downstream item to this item

POST
/api/v1/items/{itemId}/relationships/downstream
curl --request POST \
--url https://app.avera.io/api/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/relationships/downstream \
--header 'Content-Type: application/json' \
--data '{ "relationshipTypeId": "example", "downstreamItemId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

The path item becomes the upstream endpoint. Otherwise identical to the upstream form: the typed change seam enforces the relationship type’s allowed pairs and the downstream owner’s state gate.

itemId
required
string format: uuid
Media typeapplication/json
object
relationshipTypeId
required
string
downstreamItemId
required
string format: uuid

Example generated

{
"relationshipTypeId": "example",
"downstreamItemId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

OK

Media type*/*
object
id
required
string format: uuid
relationshipTypeId
required
string
upstreamItemId
required
string format: uuid
downstreamItemId
required
string format: uuid
suspect
required
boolean
suspectReason
string | null
createdAt
required
string format: date-time
createdBy
required
string format: uuid
position
integer | null format: int64