publication
query
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Retrieve the specified Publication object by
ID.Arguments
The
ID of the Publication to retrieve.Return
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Query Publication by ID
Code
query Publication {
publication(id: "gid://shopline/Publication/21230257") {
supportsFuturePublishing
id
catalog {
id
title
status
... on AppCatalog {
id
title
status
apps(first: 10) {
nodes {
appKey
id
title
embedded
}
}
}
}
}
}
Response
{
"data": {
"publication": {
"supportsFuturePublishing": false,
"catalog": {
"id": "gid://shopline/Catalog/21230258",
"status": "ACTIVE",
"title": "Channel Catalog 21230257",
"apps": {
"nodes": [
{
"embedded": false,
"id": "gid://shopline/App/65095",
"title": "Facebook",
"appKey": "111afe2f9baceb93004af92b1276582619f1db26"
}
]
}
},
"id": "gid://shopline/Publication/21230257"
}
}
}
Was this article helpful to you?