POST api/Provider/SaveRoles
Request Information
URI Parameters
None.
Body Parameters
Role| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleId | integer |
None. |
|
| RoleName | string |
None. |
|
| UserId | integer |
None. |
|
| DomainId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"RoleId": 1,
"RoleName": "sample string 2",
"UserId": 3,
"DomainId": "sample string 4"
}
text/html
Sample:
{"RoleId":1,"RoleName":"sample string 2","UserId":3,"DomainId":"sample string 4"}
application/xml, text/xml
Sample:
<Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATLAS_Business.Entities.Common"> <DomainId>sample string 4</DomainId> <RoleId>1</RoleId> <RoleName>sample string 2</RoleName> <UserId>3</UserId> </Role>
multipart/form-data
Sample:
<Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATLAS_Business.Entities.Common"><DomainId>sample string 4</DomainId><RoleId>1</RoleId><RoleName>sample string 2</RoleName><UserId>3</UserId></Role>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseData| Name | Description | Type | Additional information |
|---|---|---|---|
| MessageCode | string |
None. |
|
| MessageText | string |
None. |
|
| MessageType | EnumMessageType |
None. |
|
| HasException | boolean |
None. |
|
| Exception | string |
None. |
|
| Data | Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"MessageCode": "sample string 1",
"MessageText": "sample string 2",
"MessageType": 1,
"HasException": true,
"Exception": "sample string 4",
"Data": [
{},
{}
]
}
text/html
Sample:
{"MessageCode":"sample string 1","MessageText":"sample string 2","MessageType":1,"HasException":true,"Exception":"sample string 4","Data":[{},{}]}
application/xml, text/xml
Sample:
<ResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATLAS_Business.Entities.Common">
<Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:anyType />
<d2p1:anyType />
</Data>
<Exception>sample string 4</Exception>
<HasException>true</HasException>
<MessageCode>sample string 1</MessageCode>
<MessageText>sample string 2</MessageText>
<MessageType>OPERATION_SUCCESS</MessageType>
</ResponseData>
multipart/form-data
Sample:
<ResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATLAS_Business.Entities.Common"><Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:anyType /><d2p1:anyType /></Data><Exception>sample string 4</Exception><HasException>true</HasException><MessageCode>sample string 1</MessageCode><MessageText>sample string 2</MessageText><MessageType>OPERATION_SUCCESS</MessageType></ResponseData>