PUT api/Likes?postId={postId}&typeToChangeTo={typeToChangeTo}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| postId | integer |
Required |
|
| typeToChangeTo | LikeType |
Required |
Body Parameters
None.
Response Information
Resource Description
LikeResult| Name | Description | Type | Additional 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>