GET api/UserCompanies/{id}

Gets usercompanies by id. Will return empty object if id not found with object.id = 0.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

UserCompanies
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

ProfileId

integer

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Id": 1,
  "CompanyId": 2,
  "ProfileId": 3
}

application/xml, text/xml

Sample:
<UserCompanies xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <CompanyId>2</CompanyId>
  <Id>1</Id>
  <ProfileId>3</ProfileId>
</UserCompanies>