DELETE api/v1/Users/{id}/UserRoles/{roleId}

Removes an existing Role from an existing User. Returns Success/Error code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Represents the PK of an existing User

globally unique identifier

Required

roleId

Represents the PK of an existing Role assigned to an existing User represented by UserId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
ResultCode

Represents the result code

integer

None.

Description

Represents a description of the result code

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Description": "sample string 2"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <Description>sample string 2</Description>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResultCode>1</ResultCode>
</Result>