POST api/RolesAndFunctions/SaveRole
Request Information
URI Parameters
None.
Body Parameters
RolesViewModelName | Description | Type | Additional information |
---|---|---|---|
RoleName | string |
Required |
|
AccountId | string |
None. |
|
IsSystemDefined | boolean |
None. |
|
FunctionsAndPermissions | Collection of FunctionsAndPermissionsViewModel |
None. |
|
Id | string |
None. |
|
CreatedDate | date |
None. |
|
UpdatedDate | date |
None. |
|
CreatedBy | string |
None. |
|
UpdatedBy | string |
None. |
|
CreatedByUserId | string |
None. |
|
UpdatedByUserId | string |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "RoleName": "sample string 1", "AccountId": "sample string 2", "IsSystemDefined": true, "FunctionsAndPermissions": [ { "Id": "sample string 1", "FunctionUniqueName": "sample string 2", "Permission": [ { "Id": "sample string 1", "Name": "View", "HasPermission": true }, { "Id": "sample string 1", "Name": "View", "HasPermission": true } ] }, { "Id": "sample string 1", "FunctionUniqueName": "sample string 2", "Permission": [ { "Id": "sample string 1", "Name": "View", "HasPermission": true }, { "Id": "sample string 1", "Name": "View", "HasPermission": true } ] } ], "Id": "sample string 4", "CreatedDate": "2024-11-21T10:22:31.7916595+00:00", "UpdatedDate": "2024-11-21T10:22:31.7916595+00:00", "CreatedBy": "sample string 7", "UpdatedBy": "sample string 8", "CreatedByUserId": "sample string 9", "UpdatedByUserId": "sample string 10", "IsDeleted": true }
application/xml, text/xml
Sample:
<RolesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.AccountsAndSettings.RolesFunctionsAndPermissions"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 7</CreatedBy> <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 9</CreatedByUserId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T10:22:31.7916595+00:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 4</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">true</IsDeleted> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 8</UpdatedBy> <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 10</UpdatedByUserId> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T10:22:31.7916595+00:00</UpdatedDate> <AccountId>sample string 2</AccountId> <FunctionsAndPermissions> <FunctionsAndPermissionsViewModel> <FunctionUniqueName>sample string 2</FunctionUniqueName> <Id>sample string 1</Id> <Permission> <PermissionViewModel> <HasPermission>true</HasPermission> <Id>sample string 1</Id> <Name>View</Name> </PermissionViewModel> <PermissionViewModel> <HasPermission>true</HasPermission> <Id>sample string 1</Id> <Name>View</Name> </PermissionViewModel> </Permission> </FunctionsAndPermissionsViewModel> <FunctionsAndPermissionsViewModel> <FunctionUniqueName>sample string 2</FunctionUniqueName> <Id>sample string 1</Id> <Permission> <PermissionViewModel> <HasPermission>true</HasPermission> <Id>sample string 1</Id> <Name>View</Name> </PermissionViewModel> <PermissionViewModel> <HasPermission>true</HasPermission> <Id>sample string 1</Id> <Name>View</Name> </PermissionViewModel> </Permission> </FunctionsAndPermissionsViewModel> </FunctionsAndPermissions> <IsSystemDefined>true</IsSystemDefined> <RoleName>sample string 1</RoleName> </RolesViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.