v1

latestOpenAPI 3.0.02026-08-062903562.2 MB
Like

createUpdateLike

Create a Like for the specified Update

post/updates/{update}/likes

Path parameters

updateinteger required
Example:72631

Primary identifier of specified Update

Request body

member_idinteger

Primary identifier of associated Member

likeable_idinteger nullable

Primary identifier of the Entity for which the Like was created

likeable_typestring nullable

Type of the Entity for which the Like was created

Example request

{
  "member_id": 2012,
  "likeable_id": 72631,
  "likeable_type": "update"
}

Response

Success

idinteger

Primary identifier of record

member_idinteger

Primary identifier of associated Member

liker_namestring

The full name of the Member who made the Like

likeable_idinteger nullable

Primary identifier of the Entity for which the Like was created

likeable_typestring nullable

Type of the Entity for which the Like was created

created_atstring date-time

Date/time of initial record creation

updated_atstring date-time

Date/time of last record update

Example response

{
  "id": 3397,
  "member_id": 2012,
  "liker_name": "John Doe",
  "likeable_id": 72631,
  "likeable_type": "update",
  "created_at": "2021-04-23T08:23:21Z",
  "updated_at": "2021-04-23T10:25:03Z"
}