POST api/RolesAndFunctions/SaveRoleFunctions

Request Information

URI Parameters

None.

Body Parameters

RoleFunctionsViewModel
NameDescriptionTypeAdditional information
FunctionName

string

Required

FunctionUniqueName

string

Required

Permissions

Collection of PermissionViewModel

None.

SubFunctions

Collection of SubFunctionViewModel

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:
{
  "FunctionName": "sample string 1",
  "FunctionUniqueName": "sample string 2",
  "Permissions": [
    {
      "Id": "sample string 1",
      "Name": "View",
      "HasPermission": true
    },
    {
      "Id": "sample string 1",
      "Name": "View",
      "HasPermission": true
    }
  ],
  "SubFunctions": [
    {
      "Id": "sample string 1",
      "SubFunctionName": "sample string 2",
      "SubFunctionUniqueName": "sample string 3",
      "Permissions": [
        {
          "Id": "sample string 1",
          "Name": "View",
          "HasPermission": true
        },
        {
          "Id": "sample string 1",
          "Name": "View",
          "HasPermission": true
        }
      ]
    },
    {
      "Id": "sample string 1",
      "SubFunctionName": "sample string 2",
      "SubFunctionUniqueName": "sample string 3",
      "Permissions": [
        {
          "Id": "sample string 1",
          "Name": "View",
          "HasPermission": true
        },
        {
          "Id": "sample string 1",
          "Name": "View",
          "HasPermission": true
        }
      ]
    }
  ],
  "Id": "sample string 3",
  "CreatedDate": "2024-04-20T00:26:45.2783774+00:00",
  "UpdatedDate": "2024-04-20T00:26:45.2783774+00:00",
  "CreatedBy": "sample string 6",
  "UpdatedBy": "sample string 7",
  "CreatedByUserId": "sample string 8",
  "UpdatedByUserId": "sample string 9",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<RoleFunctionsViewModel 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 6</CreatedBy>
  <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 8</CreatedByUserId>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-04-20T00:26:45.2783774+00:00</CreatedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 3</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 7</UpdatedBy>
  <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 9</UpdatedByUserId>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-04-20T00:26:45.2783774+00:00</UpdatedDate>
  <FunctionName>sample string 1</FunctionName>
  <FunctionUniqueName>sample string 2</FunctionUniqueName>
  <Permissions>
    <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>
  </Permissions>
  <SubFunctions>
    <SubFunctionViewModel>
      <Id>sample string 1</Id>
      <Permissions>
        <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>
      </Permissions>
      <SubFunctionName>sample string 2</SubFunctionName>
      <SubFunctionUniqueName>sample string 3</SubFunctionUniqueName>
    </SubFunctionViewModel>
    <SubFunctionViewModel>
      <Id>sample string 1</Id>
      <Permissions>
        <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>
      </Permissions>
      <SubFunctionName>sample string 2</SubFunctionName>
      <SubFunctionUniqueName>sample string 3</SubFunctionUniqueName>
    </SubFunctionViewModel>
  </SubFunctions>
</RoleFunctionsViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.