POST api/v2.0/Blogs/UpdateComment?blogCommentKey={blogCommentKey}

Updates the specified Blog Comment with new Comment Text.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
blogCommentKey

The Key of the Blog Comment to update.

globally unique identifier

Required

Body Parameters

The new text for the Blog Comment.

CommentRequest
NameDescriptionTypeAdditional information
CommentBody

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CommentBody": "sample string 1"
}

application/xml, text/xml

Sample:
<CommentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request">
  <CommentBody>sample string 1</CommentBody>
</CommentRequest>

Response Information

Resource Description

True if successful.

Comment
NameDescriptionTypeAdditional information
CommentBody

string

None.

CommentAuthor

ContactConcise

None.

CreatedOn

date

None.

CommentKey

globally unique identifier

None.

UpdatedOn

date

None.

Response Formats

application/json, text/json

Sample:
{
  "CommentBody": "sample string 1",
  "CommentAuthor": {
    "LinkToProfile": "sample string 1",
    "PictureUrl": "sample string 2",
    "ContactKey": "084caca4-ffed-4186-b9c0-7443b7eae8e2",
    "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": "2019-07-21T09:18:06.810495Z",
    "UpdatedByContactKey": "6c5fb76b-d1bd-4acc-8c96-d030d0f36e49",
    "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": "2019-07-21T09:18:06.810495Z"
  },
  "CreatedOn": "2019-07-21T09:18:06.810495Z",
  "CommentKey": "c62a9626-69de-4868-852c-6f364fba05f0",
  "UpdatedOn": "2019-07-21T09:18:06.810495Z"
}

application/xml, text/xml

Sample:
<Comment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
  <CommentAuthor>
    <AMSDirectoryOptOut>true</AMSDirectoryOptOut>
    <AgreedToTermsDateTime>2019-07-21T05:18:06.810495-04:00</AgreedToTermsDateTime>
    <CompanyLegacyContactKey>sample string 20</CompanyLegacyContactKey>
    <CompanyName>sample string 12</CompanyName>
    <CompanyTitle>sample string 13</CompanyTitle>
    <ContactKey>084caca4-ffed-4186-b9c0-7443b7eae8e2</ContactKey>
    <ContactStatusCode>sample string 8</ContactStatusCode>
    <Designation>sample string 15</Designation>
    <DisplayName>sample string 6</DisplayName>
    <EmailAddress>sample string 7</EmailAddress>
    <FirstName>sample string 4</FirstName>
    <HLContactMeOptOut>true</HLContactMeOptOut>
    <HLDirectoryOptOut>true</HLDirectoryOptOut>
    <InformalName>sample string 17</InformalName>
    <IsCompany>true</IsCompany>
    <LargePictureUrl>sample string 24</LargePictureUrl>
    <LastName>sample string 5</LastName>
    <LegacyContactKey>sample string 16</LegacyContactKey>
    <LinkToProfile>sample string 1</LinkToProfile>
    <MiddleName>sample string 18</MiddleName>
    <PictureUrl>sample string 2</PictureUrl>
    <PrefixCode>sample string 9</PrefixCode>
    <SuffixCode>sample string 14</SuffixCode>
    <UpdatedByContactKey>6c5fb76b-d1bd-4acc-8c96-d030d0f36e49</UpdatedByContactKey>
    <UpdatedOn>2019-07-21T05:18:06.810495-04:00</UpdatedOn>
  </CommentAuthor>
  <CommentBody>sample string 1</CommentBody>
  <CommentKey>c62a9626-69de-4868-852c-6f364fba05f0</CommentKey>
  <CreatedOn>2019-07-21T05:18:06.810495-04:00</CreatedOn>
  <UpdatedOn>2019-07-21T05:18:06.810495-04:00</UpdatedOn>
</Comment>