Skip to end of metadata
Go to start of metadata

Syntax

createBlog(spaceKey, blogTitle, blogContent)

Description

Creates a blog based on the provided arguments.

Parameters

Parameter name

Type

Required

Description

spaceKey

stringYesKey of space to create the new blog in.
blogTitlestringYesTitle of the new blog.
blogContentstringYesContent to be displayed on the new blog.

Return type

number

The blogID of the newly created blog.

Example

string spaceKey = "PSCONF";
string blogTitle = "New BlogPost";
string blogContent = "<p>This blog was created by Power Scripts!<p>";

number newBlog = createBlog(spaceKey, blogTitle, blogContent);

See also