POST api/v1.0/Blogs/UpdateBlog?blogKey={blogKey}
Update a Blog's Title, Text, Comment Permissions, View Permissions and Associated Community.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
blogKey |
Key of the Blog to update. |
globally unique identifier |
Required |
Body Parameters
Title: (Optional) string, Body: (Optional) string, CommunityKey: (Optional) To be supplied if the Blog should be associated with a specific Community., ViewPermissions: (Optional) Can be empty to allow anyone to view or one of- 'public', 'authenticated', 'members_only', 'my_contacts'., CommentPermissions: (Optional) Can be empty to allow anyone to comment or one of- 'authenticated', 'members_only', 'my_contacts', 'no_comments'.,
EditBlogRequestName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
Body | string |
None. |
|
CommunityKey | globally unique identifier |
None. |
|
ViewPermissions | string |
None. |
|
CommentPermissions | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Title": "sample string 1", "Body": "sample string 2", "CommunityKey": "a84c1e02-4b96-4dfb-872d-105969312444", "ViewPermissions": "sample string 3", "CommentPermissions": "sample string 4" }
application/xml, text/xml
Sample:
<EditBlogRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <Body>sample string 2</Body> <CommentPermissions>sample string 4</CommentPermissions> <CommunityKey>a84c1e02-4b96-4dfb-872d-105969312444</CommunityKey> <Title>sample string 1</Title> <ViewPermissions>sample string 3</ViewPermissions> </EditBlogRequest>
Response Information
Resource Description
Collection of booleanResponse Formats
application/json, text/json
Sample:
[ true, true ]
application/xml, text/xml
Sample:
<ArrayOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <boolean>true</boolean> <boolean>true</boolean> </ArrayOfboolean>