POST api/Users/Permission/List?UserId={UserId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserId

string

Required

Body Parameters

DTO_UserPermission
NameDescriptionTypeAdditional information
BranchCode

string

None.

OfficeCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BranchCode": "sample string 1",
  "OfficeCode": "sample string 2"
}

application/xml, text/xml

Sample:
<DTO_UserPermission xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MTBooking.Web.API.DTO">
  <BranchCode>sample string 1</BranchCode>
  <OfficeCode>sample string 2</OfficeCode>
</DTO_UserPermission>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserPermissionModel
NameDescriptionTypeAdditional information
Access

Dictionary of string [key] and Dictionary of string [key] and Dictionary of string [key] and boolean [value] [value] [value]

None.

Request

RequestModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Access": {
    "sample string 1": {
      "sample string 1": {
        "sample string 1": true,
        "sample string 3": true
      },
      "sample string 2": {
        "sample string 1": true,
        "sample string 3": true
      }
    },
    "sample string 2": {
      "sample string 1": {
        "sample string 1": true,
        "sample string 3": true
      },
      "sample string 2": {
        "sample string 1": true,
        "sample string 3": true
      }
    }
  },
  "Request": {
    "Status": 0,
    "Description": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<UserPermissionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MTBooking.Web.API.Models">
  <Access xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfKeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1ty7Ep6D1>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>
        <d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Value>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 1</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 3</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
          </d2p1:Value>
        </d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
        <d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
          <d2p1:Key>sample string 2</d2p1:Key>
          <d2p1:Value>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 1</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 3</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
          </d2p1:Value>
        </d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfKeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1ty7Ep6D1>
    <d2p1:KeyValueOfstringArrayOfKeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1ty7Ep6D1>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>
        <d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
          <d2p1:Key>sample string 1</d2p1:Key>
          <d2p1:Value>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 1</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 3</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
          </d2p1:Value>
        </d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
        <d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
          <d2p1:Key>sample string 2</d2p1:Key>
          <d2p1:Value>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 1</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
            <d2p1:KeyValueOfstringboolean>
              <d2p1:Key>sample string 3</d2p1:Key>
              <d2p1:Value>true</d2p1:Value>
            </d2p1:KeyValueOfstringboolean>
          </d2p1:Value>
        </d2p1:KeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfKeyValueOfstringArrayOfKeyValueOfstringbooleanty7Ep6D1ty7Ep6D1>
  </Access>
  <Request>
    <Description>sample string 1</Description>
    <Status>Ok</Status>
  </Request>
</UserPermissionModel>