Skip to main content

feedCreatePost Mutation

Description​

Publishes an inventory item to the shared feed (max 6 per hour per shop).

mutation feedCreatePost($configRef: ID!, $item: FeedItemInput!) {
feedCreatePost(configRef: $configRef, item: $item) {
_id
type
from
timestamp
item {
_id
artwork
uri
isPreorder
hasAudio
}
isFavorite
config {
_id
name
thumbnail
uri
}
}
}

Variables​

{
"configRef": "97f78e7ea751a55625a0f6d1",
"item": {
"ref": "0265aa5ca412d8eae918797e",
"artwork": "artwork",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
}
}

Response​

{
"feedCreatePost": {
"_id": "a531ab1f8ddba918f7150ffb",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "30047ad86c92c550d31cdefa",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "9495a849046f1a43c58c632e",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments​

NameTypeDescription
configRefID!—
itemFeedItemInput!Input type. See the `FeedItemInput` type for field details.

Returns​

FeedPost