POST api/usrrole2action/preparenew
Request Information
URI Parameters
None.
Body Parameters
Collection of KeyValue| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Value | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Value": "sample string 2"
},
{
"Id": 1,
"Value": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
</ArrayOfKeyValue>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UsrRole2Action| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| RoleId | integer |
Required |
|
| ActionId | integer |
Required |
|
| GrantAccess | boolean |
Required |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"RowGuid": "7303e914-df36-4d87-9af9-58af6bf2fc1e",
"RoleId": 3,
"ActionId": 4,
"GrantAccess": true
}
application/xml, text/xml
Sample:
<UsrRole2Action xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.Tools.Usr.Models"> <ActionId>4</ActionId> <GrantAccess>true</GrantAccess> <Id>1</Id> <RoleId>3</RoleId> <RowGuid>7303e914-df36-4d87-9af9-58af6bf2fc1e</RowGuid> </UsrRole2Action>