POST api/Administration/Roles/{roleId}/Rights
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
roleId | string |
None. |
Body Parameters
RoleRightsUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
AccessBits | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "b75fb8f0-1c39-48bc-8489-2264aca2a097", "AccessBits": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<RoleRightsUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Administration.ViewModels"> <AccessBits xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </AccessBits> <Id>b75fb8f0-1c39-48bc-8489-2264aca2a097</Id> </RoleRightsUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" b75fb8f0-1c39-48bc-8489-2264aca2a097 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AccessBits[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AccessBits[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.