Skip to main content

DeleteItemLink

Delete links to related items (using DisplayID)

Description

Delete links to related items

Method

DELETE

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/items/dellink/: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

{
"link_datastore_id": "DATABASE_2",
"link_item_id": "5d4c055eaa39555618ac9e6a", // (Optional) If omitted, all Item links associated with link_datastore_id will be removed
"type": "link" // (Optional) Remove links by specifying the related type (link, auto_link, and lookup can be specified). If link_item_id is omitted, the links to items of the specified related type related to link_datastore_id are removed.

Request URL Sample

DELETE http://api.xxx.com/api/v0/applications/APPNAME/datastores/DATABASE_1/items/dellink/5d4c058baa39555618ac9e8b

Response Sample

null

Error Sample

If the target for deletion is not found

HTTP 404
{
"error": "item links not found for {DATABASE_1 5d4c058baa39555618ac9e8b DATABASE_2 5d4c055eaa39555618ac9e6a }",
"error_code": "NOT_FOUND"
}