POST api/Users/ChangeRoles

Request Information

URI Parameters

None.

Body Parameters

UsersRolesViewModel
NameDescriptionTypeAdditional information
MasterUsersId

integer

None.

ApplicationsId

integer

None.

Roles

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MasterUsersId": 1,
  "ApplicationsId": 2,
  "Roles": [
    1,
    2
  ]
}

text/html

Sample:
{"MasterUsersId":1,"ApplicationsId":2,"Roles":[1,2]}

application/xml, text/xml

Sample:
<UsersRolesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UsersManagementApi.Models">
  <ApplicationsId>2</ApplicationsId>
  <MasterUsersId>1</MasterUsersId>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </Roles>
</UsersRolesViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.