POST api/v2.0/Blogs/CreateBlog
Create a new Blog.
Request Information
URI Parameters
None.
Body Parameters
Title: string. Body: string. CommunityKey: (Optional) To be supplied if the Blog should be associated with a specific Community. ViewPermissions: (Optional, Defaults to 'public') Can be one of - 'public', 'authenticated', 'members_only', 'my_contacts'. CommentPermissions: (Optional, Defaults to 'members_only') Can be one of - 'members_only', 'no_comments'. PublishImmediately: (Optional, Defaults to True) If False, the Blog will be Saved, but not Published.
CreateBlogRequestName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
Body | string |
None. |
|
CommunityKey | globally unique identifier |
None. |
|
ViewPermissions | string |
None. |
|
CommentPermissions | string |
None. |
|
PublishImmediately | boolean |
None. |
Request Formats
application/json, text/json
{ "Title": "sample string 1", "Body": "sample string 2", "CommunityKey": "16522f9f-ff28-4eba-8d5c-c0ab4aa62bea", "ViewPermissions": "sample string 3", "CommentPermissions": "sample string 4", "PublishImmediately": true }
application/xml, text/xml
<CreateBlogRequest 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>16522f9f-ff28-4eba-8d5c-c0ab4aa62bea</CommunityKey> <PublishImmediately>true</PublishImmediately> <Title>sample string 1</Title> <ViewPermissions>sample string 3</ViewPermissions> </CreateBlogRequest>
Response Information
Resource Description
The newly created Blog.
BlogName | Description | Type | Additional information |
---|---|---|---|
Author | ContactConcise |
None. |
|
BlogKey | globally unique identifier |
None. |
|
Community | Community |
None. |
|
CreatedOn | date |
None. |
|
BlogText | string |
None. |
|
IsPublished | boolean |
None. |
|
LinkToReadBlog | string |
None. |
|
PublishedOn | date |
None. |
|
BlogTitle | string |
None. |
|
UpdatedOn | date |
None. |
|
ViewPermission | string |
None. |
|
CommentPermission | string |
None. |
|
ViewCount | integer |
None. |
|
RatingCount | integer |
None. |
|
CommentCount | integer |
None. |
|
Comments | Collection of Comment |
None. |
|
RelatedLinks | Collection of RelatedLink |
None. |
|
ContactsWhoRecommend | Collection of ContactConcise |
None. |
|
AuthenticatedUserRecommends | boolean |
None. |
|
AuthenticatedUserFavorite | boolean |
None. |
Response Formats
application/json, text/json
{ "Author": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, "BlogKey": "6255a5ae-2c84-45ef-9e61-af8bed97c1f6", "Community": null, "CreatedOn": "2023-03-28T05:10:23.7659137Z", "BlogText": "sample string 3", "IsPublished": true, "LinkToReadBlog": "sample string 5", "PublishedOn": "2023-03-28T05:10:23.7659137Z", "BlogTitle": "sample string 7", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "ViewPermission": "sample string 9", "CommentPermission": "sample string 10", "ViewCount": 11, "RatingCount": 12, "CommentCount": 13, "Comments": [ { "CommentKey": "22bd5be1-e449-4df2-bc8a-ecd1ddb9c1bb", "CommentBody": "sample string 2", "CommentAuthor": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, "IsOfficial": true, "ItemKey": "6da4dcc4-b8b5-43d9-8fcd-b575f4461bae", "CreatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedOn": "2023-03-28T05:10:23.7659137Z" }, { "CommentKey": "22bd5be1-e449-4df2-bc8a-ecd1ddb9c1bb", "CommentBody": "sample string 2", "CommentAuthor": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, "IsOfficial": true, "ItemKey": "6da4dcc4-b8b5-43d9-8fcd-b575f4461bae", "CreatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedOn": "2023-03-28T05:10:23.7659137Z" } ], "RelatedLinks": [ { "RelatedLinkKey": "ff32db42-9aed-482d-8765-da19c5818cb0", "ItemKey": "3fd5bdc5-faff-40e1-a57a-e69601b7989e", "Url": "sample string 3", "Contributor": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, "CreatedOn": "2023-03-28T05:10:23.7659137Z" }, { "RelatedLinkKey": "ff32db42-9aed-482d-8765-da19c5818cb0", "ItemKey": "3fd5bdc5-faff-40e1-a57a-e69601b7989e", "Url": "sample string 3", "Contributor": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, "CreatedOn": "2023-03-28T05:10:23.7659137Z" } ], "ContactsWhoRecommend": [ { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" }, { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "8ad9e969-992a-4bfb-aaf1-293e0a93ab08", "FirstName": "sample string 4", "LastName": "sample string 5", "DisplayName": "sample string 6", "EmailAddress": "sample string 7", "ContactStatusCode": "sample string 8", "PrefixCode": "sample string 9", "UpdatedOn": "2023-03-28T05:10:23.7659137Z", "UpdatedByContactKey": "329e870a-7dc6-4f9e-aede-ec175af68f46", "CompanyName": "sample string 12", "CompanyTitle": "sample string 13", "SuffixCode": "sample string 14", "Designation": "sample string 15", "LegacyContactKey": "sample string 16", "InformalName": "sample string 17", "MiddleName": "sample string 18", "IsCompany": true, "CompanyLegacyContactKey": "sample string 20", "AMSDirectoryOptOut": true, "HLDirectoryOptOut": true, "HLContactMeOptOut": true, "LargePictureUrl": "sample string 24", "AgreedToTermsDateTime": "2023-03-28T05:10:23.7659137Z" } ], "AuthenticatedUserRecommends": true, "AuthenticatedUserFavorite": true }
application/xml
Sample not available.
text/xml
Sample not available.