Syntax
createBlog(spaceKey, blogTitle, blogContent)
Description
Creates a blog based on the provided arguments.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| string | Yes | Key of space to create the new blog in. |
blogTitle | string | Yes | Title of the new blog. |
blogContent | string | Yes | Content 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