POST api/UserFavorites/Add/{Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of UserFavoriteDto
NameDescriptionTypeAdditional information
Id

integer

None.

ContentItemId

integer

None.

UserId

globally unique identifier

None.

CreatedOn

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ContentItemId": 2,
    "UserId": "5f7c9a3b-e27f-4365-8507-607588a25d51",
    "CreatedOn": "2019-05-26T04:11:17.564193-04:00"
  },
  {
    "Id": 1,
    "ContentItemId": 2,
    "UserId": "5f7c9a3b-e27f-4365-8507-607588a25d51",
    "CreatedOn": "2019-05-26T04:11:17.564193-04:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserFavoriteDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <UserFavoriteDto>
    <ContentItemId>2</ContentItemId>
    <CreatedOn>2019-05-26T04:11:17.564193-04:00</CreatedOn>
    <Id>1</Id>
    <UserId>5f7c9a3b-e27f-4365-8507-607588a25d51</UserId>
  </UserFavoriteDto>
  <UserFavoriteDto>
    <ContentItemId>2</ContentItemId>
    <CreatedOn>2019-05-26T04:11:17.564193-04:00</CreatedOn>
    <Id>1</Id>
    <UserId>5f7c9a3b-e27f-4365-8507-607588a25d51</UserId>
  </UserFavoriteDto>
</ArrayOfUserFavoriteDto>