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.Returns
Error Code
For more information about common error codes, refer to 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": {
"catalog": {
"apps": {
"nodes": [
{
"appKey": "111afe2f9baceb93004af92b1276582619f1db26",
"embedded": false,
"id": "gid://shopline/App/65095",
"title": "Facebook"
}
]
},
"id": "gid://shopline/Catalog/21230258",
"status": "ACTIVE",
"title": "Channel Catalog 21230257"
},
"id": "gid://shopline/Publication/21230257",
"supportsFuturePublishing": false
}
}
}
Was this article helpful to you?