Skip to main content

UpdateItemLink

Updated links to related items

Description

Update links to related items

Method

POST

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/items/updatelink/:item-id

URL Params

app-id          : Application ID (ID entered from the Hexabase screen or internal ID [p_id])
datastore-id : Data store ID (ID entered from the Hexabase screen or internal ID [d_id])
item-id : ID of the subject item

Payload

{
"old_link_datastore_id": "DATABASE_2", // Linked data store ID to be updated
"old_link_item_id": "5db16351ef2261da6f3b3560", // Linked item ID to be updated
"new_link_datastore_id": "DATABASE_2", // Data store ID to be added
"new_link_item_id": "5db16351ef2261da6f3b356b" // Item ID to be added
}

Request URL Sample

POST https://api.xxx.com/api/v0/applications/APPNAME/datastores/DATABASE_1/items/updatelink/5d4c058baa39555618ac9e8b

Response Sample

null