itemListingDiscogs Mutation
Description
Lists or unlists a listing on Discogs. If list is true, the listing will be created on Discogs (if Discogs sync is enabled and the listing meets requirements). If unlist is true, the listing will be removed from Discogs.
mutation itemListingDiscogs(
$listingRef: ID!
$list: Boolean
$unlist: Boolean
) {
itemListingDiscogs(listingRef: $listingRef, list: $list, unlist: $unlist) {
_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
}
data {
id
assetLink
thumb
title
discogsId
country
releaseDate
weight
genres
year
styles
manufacturer
cat
type
subtitle
authors
publisher
publishedDate
pageCount
categories
maturityRating
language
search
format
}
}
}
Variables
{
"listingRef": "0f0cf77471faa73bd70c72ba",
"list": true,
"unlist": true
}
Response
{
"itemListingDiscogs": {
"_id": "3f89ccca2c9e941b4e69bbdd",
"id": 1.23,
"type": "ReleaseItem",
"incId": 1.23,
"uniqueId": "example",
"oldId": 1.23,
"created": 1725084557571,
"modified": 1734797029169,
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"isForbiddenForSale": true,
"logs": [
{
"action": "example",
"description": "example",
"date": 1748183200439,
"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": "218e2b7630d6cecafd1c6f7d",
"id": 1.23,
"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": 1752805848229,
"available": 1709189826481,
"preOrder": true,
"categories": [
"example"
],
"archived": true,
"secondHand": true
}
],
"data": {
"id": 1.23,
"assetLink": "example",
"thumb": "example",
"title": "example",
"discogsId": 987654321,
"country": "example",
"releaseDate": 1711984649921,
"weight": 1.23,
"genres": [
"example"
],
"year": 42,
"styles": [
"example"
],
"manufacturer": "example",
"cat": "example",
"type": "example",
"subtitle": "example",
"authors": [
"example"
],
"publisher": "example",
"publishedDate": 1749122459879,
"pageCount": 42,
"categories": [
"example"
],
"maturityRating": "example",
"language": "example",
"search": "example",
"format": "example"
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
listingRef | ID! | Reference ID of the listing to list or unlist on Discogs. |
list | Boolean | Whether to list the item on Discogs. |
unlist | Boolean | Whether to unlist the item from Discogs. |
Returns
Item!