Skip to end of banner
Go to start of banner

createBlog

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

  • No labels