PUT api/Likes?postId={postId}&typeToChangeTo={typeToChangeTo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
postId

integer

Required

typeToChangeTo

LikeType

Required

Body Parameters

None.

Response Information

Resource Description

LikeResult
NameDescriptionTypeAdditional information
token

string

None.

status

string

None.

message

string

None.

LikeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "status": "sample string 2",
  "message": "sample string 3",
  "LikeId": 4
}

application/xml, text/xml

Sample:
<Status.LikeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models">
  <LikeId>4</LikeId>
  <message>sample string 3</message>
  <status>sample string 2</status>
  <token>sample string 1</token>
</Status.LikeResult>