Project the relationship changes pending on an item
GET
/api/v1/items/{itemId}/pending-relationship-projection
const url = 'https://app.avera.io/api/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pending-relationship-projection';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.avera.io/api/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pending-relationship-projectionDry-runs the pending relationship proposals and returns the links they would add, remove or clear suspect on, as a delta over the current set. Nothing is persisted. Added rows are enriched with the related item’s details; removals and clears reference an existing relationship by id.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”itemId
required
string format: uuid
Responses
Section titled “Responses”OK
Media type*/*
object
added
required
Array<object>
object
direction
required
string
relationshipTypeId
required
string
relationshipLabel
required
string
relatedItemId
string | null format: uuid
relatedItemNumber
string | null
relatedItemTitle
string | null
relatedItemStatus
string | null
relatedItemSeq
integer | null format: int64
relatedItemRevision
string | null
relatedItemTypeId
string | null
relatedItemTypeName
string | null
actionId
required
string format: uuid
authorActor
required
string
authorId
required
string format: uuid
authorAt
required
string format: date-time
removed
required
Array<object>
object
relationshipId
required
string format: uuid
actionId
required
string format: uuid
authorActor
required
string
authorId
required
string format: uuid
authorAt
required
string format: date-time
suspectCleared
required
Array<object>
object
relationshipId
required
string format: uuid
actionId
required
string format: uuid
authorActor
required
string
authorId
required
string format: uuid
authorAt
required
string format: date-time