PUT api/LtEmployeLikedSite/UpdateLikedSites

Replace all Lt_Employe_Liked_Site of given EmployeId by new ones based on given SiteIdsList

Request Information

URI Parameters

None.

Body Parameters

UserLikeSiteDatas
NameDescriptionTypeAdditional information
EmployeId

integer

None.

SitesIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeId": 1,
  "SitesIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<UserLikeSiteDatas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Controllers">
  <EmployeId>1</EmployeId>
  <SitesIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SitesIds>
</UserLikeSiteDatas>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserLikeSiteDatas'.

Response Information

Resource Description

Lt_Employe_Liked_Site
NameDescriptionTypeAdditional information
EmployesId

integer

None.

SiteId

integer

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EmployesId": 1,
  "SiteId": 2,
  "LastChanged": "2025-08-14T03:20:02.459043+00:00",
  "LastChange_AuthorId": 1
}

application/xml, text/xml

Sample:
<Lt_Employe_Liked_Site xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <EmployesId>1</EmployesId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:20:02.459043+00:00</LastChanged>
  <SiteId>2</SiteId>
</Lt_Employe_Liked_Site>