POST api/v2.0/Discussions/RecommendDiscussionPost?discussionPostKey={discussionPostKey}

Adds a recommendation for the specified Discussion Post.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
discussionPostKey

BlogKey for the Blog to recommend.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Details about the Recommendation.

ItemRating
NameDescriptionTypeAdditional information
RatedItemKey

globally unique identifier

None.

RatingMode

string

None.

RatedByContact

ContactConcise

None.

RatingValue

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "RatedItemKey": "c1a8697c-787c-4958-8346-032275d75986",
  "RatingMode": "sample string 2",
  "RatedByContact": {
    "LinkToProfile": "sample string 1",
    "PictureUrl": "sample string 2",
    "ContactKey": "c42217c8-f1c6-4f82-b370-941b6625b04b",
    "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-21T08:58:12.3366405Z",
    "UpdatedByContactKey": "f21d1764-535f-4bcf-bf7b-ae21f25b0703",
    "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-21T08:58:12.3366405Z"
  },
  "RatingValue": 3.0
}

application/xml, text/xml

Sample:
<ItemRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
  <RatedByContact>
    <AMSDirectoryOptOut>true</AMSDirectoryOptOut>
    <AgreedToTermsDateTime>2019-07-21T04:58:12.3366405-04:00</AgreedToTermsDateTime>
    <CompanyLegacyContactKey>sample string 20</CompanyLegacyContactKey>
    <CompanyName>sample string 12</CompanyName>
    <CompanyTitle>sample string 13</CompanyTitle>
    <ContactKey>c42217c8-f1c6-4f82-b370-941b6625b04b</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>f21d1764-535f-4bcf-bf7b-ae21f25b0703</UpdatedByContactKey>
    <UpdatedOn>2019-07-21T04:58:12.3366405-04:00</UpdatedOn>
  </RatedByContact>
  <RatedItemKey>c1a8697c-787c-4958-8346-032275d75986</RatedItemKey>
  <RatingMode>sample string 2</RatingMode>
  <RatingValue>3</RatingValue>
</ItemRating>