...

/

Create, Update, and Delete a Page

Create, Update, and Delete a Page

Learn about the blog page and how to create, update, and delete it.

A blog page, also referred to as a page, contains information that will not be updated or changed. This commonly includes profile, business, or contact information. Blog pages are not timestamped.

Page attributes

The table below shows the complete list of properties for the page class.

Parameter

Type

Description

kind

string

The type of object.

Value: blogger#page

Note: This value is fixed.

id

string

The ID of the page.

blog

object

The object that contains the blog's information for the page.

blog.id

string

The blog ID for the page.

published

datetime

The page's publishing date.

Format: yyyy-mm-dd

updated

datetime

The date of the page's last update.

Format: yyyy-mm-dd

url

string

The published link of the page.

selfLink

string

The Blogger API URL of the page.

title

string

The title of the page.

content

string

The content of the page.

author

object

The object that contains the author's information for the page.

author.id

string

The ID of the author.

author.displayName

string

The name of the author.

author.url

string

The published link to the author's profile.

author.image

object

The object that contains the author's avatar information.

author.image.url

string

The URL of the author's avatar.

status

string

The page status for admin resources.

Allowable values: LIVE, DRAFT

Methods

We'll now look at various methods of the page class that'll enable us to create, update, and delete a blog page.

Create a page

We can create a blog page by sending a POST request to the following URL:

Press + to interact
https://blogger.googleapis.com/v3/blogs/{blogId}/pages

As part of the request body, we'll need to provide a page object containing the attributes in the table above. Moreover, we'll need to ...