PUT api/UserCompany

Request Information

URI Parameters

None.

Body Parameters

Collection of UserCompany
NameDescriptionTypeAdditional information
CompanyName

string

None.

RoleName

string

None.

Exists

boolean

None.

ID

integer

None.

RoleId

integer

None.

UserName

string

None.

CompanyId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CompanyName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "CompanyId": 6
  },
  {
    "CompanyName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "CompanyId": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cpi_api.Models">
  <UserCompany>
    <CompanyId>6</CompanyId>
    <CompanyName>sample string 1</CompanyName>
    <Exists>true</Exists>
    <ID>3</ID>
    <RoleId>4</RoleId>
    <UserName>sample string 5</UserName>
  </UserCompany>
  <UserCompany>
    <CompanyId>6</CompanyId>
    <CompanyName>sample string 1</CompanyName>
    <Exists>true</Exists>
    <ID>3</ID>
    <RoleId>4</RoleId>
    <UserName>sample string 5</UserName>
  </UserCompany>
</ArrayOfUserCompany>

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 'UserCompany[]'.

Response Information

Resource Description

Collection of UserCompany
NameDescriptionTypeAdditional information
CompanyName

string

None.

RoleName

string

None.

Exists

boolean

None.

ID

integer

None.

RoleId

integer

None.

UserName

string

None.

CompanyId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CompanyName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "CompanyId": 6
  },
  {
    "CompanyName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "CompanyId": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cpi_api.Models">
  <UserCompany>
    <CompanyId>6</CompanyId>
    <CompanyName>sample string 1</CompanyName>
    <Exists>true</Exists>
    <ID>3</ID>
    <RoleId>4</RoleId>
    <UserName>sample string 5</UserName>
  </UserCompany>
  <UserCompany>
    <CompanyId>6</CompanyId>
    <CompanyName>sample string 1</CompanyName>
    <Exists>true</Exists>
    <ID>3</ID>
    <RoleId>4</RoleId>
    <UserName>sample string 5</UserName>
  </UserCompany>
</ArrayOfUserCompany>