POST api/employeePermission/EmployeePermissionData_Upsert

Request Information

URI Parameters

None.

Body Parameters

EmployeePermissionJsonData
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

EmployeeModuleJsonData

string

None.

employeePermissionJsonDataRoots

Collection of EmployeePermissionJsonDataRoot

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "EmployeeModuleJsonData": "sample string 2",
  "employeePermissionJsonDataRoots": [
    {
      "Id": 1,
      "key": "sample string 2",
      "Value": true
    },
    {
      "Id": 1,
      "key": "sample string 2",
      "Value": true
    }
  ]
}

text/xml

Sample:
<EmployeePermissionJsonData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1">
  <EmployeeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</EmployeeId>
  <EmployeeModuleJsonData xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 2</EmployeeModuleJsonData>
  <employeePermissionJsonDataRoots xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
    <EmployeePermissionJsonDataRoot>
      <Id>1</Id>
      <Value>true</Value>
      <key>sample string 2</key>
    </EmployeePermissionJsonDataRoot>
    <EmployeePermissionJsonDataRoot>
      <Id>1</Id>
      <Value>true</Value>
      <key>sample string 2</key>
    </EmployeePermissionJsonDataRoot>
  </employeePermissionJsonDataRoots>
</EmployeePermissionJsonData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployeePermissionJsonData'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.