query

blog

Get information related to a specific blog such as it's contents, author, publish date, SEO related information.
Arguments
Required
A short, human-readable, URL-friendly identifier of a blog. You can get slug value from the endpoint /service/application/content/v1.0/blogs/.
root_id
String
ID given to the HTML element.
Response
custom_json
JSON
Custom JSON object for specific use cases.
Unique identifier for an entry.
application
String
Application ID - Identifier for a Sales channel.
archived
Boolean
Boolean flag denoting whether blog is archived or not.
author
Author
Data related to author of blog.
Contents of blog.
date_meta
DateMeta
Details related to resource creation and updation.
feature_image
Asset
Data related to image.
published
Boolean
Boolean flag denoting whether blog is published or not.
reading_time
String
Estimated time required to read the blog.
Details related to SEO of an entry.
slug
String
A short, human-readable, URL-friendly identifier.
Tags under a blog.
publish_date
String
Timestamp denoting when the blog was published.
title
String
Title of the Blog.
summary
String
A brief description of blog.
status
String
Status of the blog.
Query
1query blog($slug: String!, $root_id: String) {
2 blog(slug: $slug, root_id: $root_id) {
3 custom_json
4 id
5 application
6 archived
7 author {
8 designation
9 id
10 name
11 }
12 content {
13 type
14 value
15 }
16 date_meta {
17 created_on
18 modified_on
19 }
20 feature_image {
21 aspect_ratio
22 id
23 secure_url
24 }
25 published
26 reading_time
27 seo {
28 title
29 description
30 canonical_url
31 }
32 slug
33 tags
34 publish_date
35 title
36 summary
37 status
38 }
39}
Try it
Input Variables
1{
2 "slug": "slug",
3 "root_id": "root_id"
4}
Response
1{
2 "blog": {
3 "custom_json": {},
4 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
5 "application": "application",
6 "archived": true,
7 "author": {
8 "designation": "designation",
9 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
10 "name": "A name"
11 },
12 "content": [
13 {
14 "type": "type",
15 "value": "value"
16 }
17 ],
18 "date_meta": {
19 "created_on": "created_on",
20 "modified_on": "modified_on"
21 },
22 "feature_image": {
23 "aspect_ratio": "aspect_ratio",
24 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
25 "secure_url": "secure_url"
26 },
27 "published": true,
28 "reading_time": "reading_time",
29 "seo": {
30 "title": "title",
31 "description": "A description",
32 "canonical_url": "canonical_url"
33 },
34 "slug": "slug",
35 "tags": [
36 "tags"
37 ],
38 "publish_date": "publish_date",
39 "title": "title",
40 "summary": "summary",
41 "status": "status"
42 }
43}