POST api/Roles/SaveCompany2Role

Request Information

URI Parameters

None.

Body Parameters

Company2Role
NameDescriptionTypeAdditional information
Company2RoleId

integer

None.

RoleId

integer

None.

CompanyId

integer

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "Company2RoleId": 1,
  "RoleId": 2,
  "CompanyId": 3
}

application/xml, text/xml

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

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 'Company2Role'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>