GET PlanCare2Api/ClientPermissions?employeeId={employeeId}&referenceDate={referenceDate}

Gets the allowed clients of the specified employee

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeId

The employee to obtain the allowed clients for

integer

Required

referenceDate

The date to obtain client permissions for

date

Required

Body Parameters

None.

Response Information

Resource Description

The ClientPermissions with the employee and the allowed clients

ClientPermissions
NameDescriptionTypeAdditional information
EmployeeId

The internal id of the employee

integer

Required

LookupName

The fullname of the employee

string

Required

AllowedClients

The list of clients the employee has access to

Collection of AllowedClient

None.

Response Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "LookupName": "sample string 2",
  "AllowedClients": [
    {
      "$id": "2",
      "ClientId": 1,
      "LookupName": "sample string 2"
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<ClientPermissions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
  <AllowedClients>
    <AllowedClient>
      <ClientId>1</ClientId>
      <LookupName>sample string 2</LookupName>
    </AllowedClient>
    <AllowedClient>
      <ClientId>1</ClientId>
      <LookupName>sample string 2</LookupName>
    </AllowedClient>
  </AllowedClients>
  <EmployeeId>1</EmployeeId>
  <LookupName>sample string 2</LookupName>
</ClientPermissions>