Skip to main content

itemListingDelete Mutation

Description​

Deletes a listing from an item. The item must have at least one listing remaining.

mutation itemListingDelete($listingRef: ID!) {
itemListingDelete(listingRef: $listingRef) {
creatorsId
_id
id
type
incId
uniqueId
oldId
created
modified
seo {
index
description
slug
title
}
isForbiddenForSale
logs {
action
description
date
ip
}
handle
path
uri
wants
bitly
descriptions {
main
}
listings {
_id
id
status
comments
privateComments
location
discogsId
taxDefinition
preventDiscogsListing
readOnly
onePerCustomer
supplierCode
sku
barcode
posted
available
preOrder
categories
archived
secondHand
lastCopyAutomation
}
data {
hsCode
id
assetLink
thumb
snippetRef
title
discogsId
country
releaseDate
weight
genres
year
styles
manufacturer
cat
type
subtitle
authors
publisher
publishedDate
pageCount
categories
maturityRating
language
search
format
}
}
}

Variables​

{
"listingRef": "b5a9fae50eee11ec17a04db0"
}

Response​

{
"itemListingDelete": {
"creatorsId": "example",
"_id": "97aea468597dc86ed9c509cd",
"id": "example",
"type": "ReleaseItem",
"incId": 1.23,
"uniqueId": "example",
"oldId": 1.23,
"created": 1735921371045,
"modified": 1784294004949,
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"isForbiddenForSale": true,
"logs": [
{
"action": "example",
"description": "example",
"date": 1757729148857,
"ip": "example"
}
],
"handle": "example",
"path": "/release/1763553751/release-artist-release-name",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"wants": 42,
"bitly": "example",
"descriptions": {
"main": "example"
},
"listings": [
{
"_id": "7ea45d1187e6f3579ca6d6b3",
"id": "example",
"status": "example",
"comments": "example",
"privateComments": "example",
"location": "example",
"discogsId": 987654321,
"taxDefinition": "example",
"preventDiscogsListing": true,
"readOnly": true,
"onePerCustomer": true,
"supplierCode": "example",
"sku": "example",
"barcode": "example",
"posted": 1765013920847,
"available": 1739631434554,
"preOrder": true,
"categories": [
"example"
],
"archived": true,
"secondHand": true,
"lastCopyAutomation": true
}
],
"data": {
"hsCode": "example",
"id": 1.23,
"assetLink": "example",
"thumb": "example",
"snippetRef": "38f2d81a0b380ad9b54541e7",
"title": "example",
"discogsId": 987654321,
"country": "example",
"releaseDate": 1734869565503,
"weight": 1.23,
"genres": [
"example"
],
"year": 42,
"styles": [
"example"
],
"manufacturer": "example",
"cat": "example",
"type": "example",
"subtitle": "example",
"authors": [
"example"
],
"publisher": "example",
"publishedDate": 1785740454142,
"pageCount": 42,
"categories": [
"example"
],
"maturityRating": "example",
"language": "example",
"search": "example",
"format": "example"
}
}
}

Arguments​

NameTypeDescription
listingRefID!Reference ID of the listing to delete.

Returns​

Item!