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": "3b5338948a854097e1595ee5",
"item": {
"ref": "71897959bf2d2ab22663bca8",
"artwork": "artwork",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
}
}
Response
{
"feedCreatePost": {
"_id": "4ed3664be15861e05723e1c0",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "9eee05aac71589685295058e",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "07aac58dae93001f724c1d12",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
configRef | ID! | — |
item | FeedItemInput! | Input type. See the FeedItemInput type for field details. |