Create, Update, and Delete a Post
Learn about blog post and how to create, update, and delete it.
We'll cover the following...
A post, or a blog post, is an article that contains information written by an author on a specific topic. The content is published for public access. Sometimes the post is only meaningful for a limited number of users, and in some cases, for a limited time. Sometimes the posts become obsolete, such as when the technology discussed in the post changes.
Post properties
The table below shows the complete list of properties that are part of the post class.
Parameter | Type | Description |
| string | The type of object. Value: Note: This value is fixed. |
| string | The ID of the post. |
| object | The object that contains the post's blog data. |
| string | The ID of the post's blog. |
| datetime | The post's publishing date. Format: yyyy-mm-dd |
| datetime | The date of the post's last update. Format: yyyy-mm-dd |
| string | The published link of the post. |
| string | The Blogger API URL of the post. |
| string | The title of the post. |
| string | The content of the post. Note: This value can include HTML. |
| object | The object that contains the post's author information. |
| string | The ID of the post's author. |
| string | The name of the post's author. |
| string | The published link to the author's profile. |
| object | The object that contains the author's avatar information. |
| string | The URL of the author's avatar. |
| object | The object that contains the post's comments. |
| long | The number of comments on the post. |
| string | The Blogger API URL of the post's comments. |
| list | The list of tags associated with the post. |
| string | The metadata of the post. |
| list | The list of comments on the post. |
| object | The object that contains the location information of the post. Note: This value is only available if the post was geotagged. |
| string | The name of the post's location. |
| double | The latitude of the post's location. |
| double | The longitude of the post's location. |
| string | The viewport span of the post's location. |
| string | The URL of the title. |
| list | The post's display image. |
| string | The URL of the post's display image. |
| string | The status of the post. Note: This value is set only for admin-level requests. |
Methods
We'll now take a look at different methods of the post class to create, update, and delete a blog post.
Create a post
We can create a blog post by sending a POST request to the following URL:
https://blogger.googleapis.com/v3/blogs/{blogId}/posts
This endpoint requires a post object that ...