POST api/Administration/Roles/{roleId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
roleId

string

None.

Body Parameters

RoleInformationUpdateViewModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Role

string

None.

RoleDisplayName

string

None.

RoleDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "3b614f63-6218-46e9-bd01-054e7dbceae7",
  "Role": "sample string 2",
  "RoleDisplayName": "sample string 3",
  "RoleDescription": "sample string 4"
}

application/xml, text/xml

Sample:
<RoleInformationUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Administration.ViewModels">
  <Id>3b614f63-6218-46e9-bd01-054e7dbceae7</Id>
  <Role>sample string 2</Role>
  <RoleDescription>sample string 4</RoleDescription>
  <RoleDisplayName>sample string 3</RoleDisplayName>
</RoleInformationUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Id"

3b614f63-6218-46e9-bd01-054e7dbceae7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Role"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="RoleDisplayName"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="RoleDescription"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.