GET PlanCare2Api/Employees/Authorizations/Calendar

Gets the calendar authorizations of the logged on employee

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

The list of calendar authorization of the logged on employee

Collection of CalendarAuthorizedPermission
NameDescriptionTypeAdditional information
TargetEmployeeId

Id of the employee whom authorized employee has permission over

integer

None.

TargetEmployeeName

Name of the employee whom authorized employee has permission over

string

None.

TargetAccessUserId

AccessUserId of the employee whom authorized employee has permission over

integer

None.

TargetRelationId

RelationId of the employee whom authorized employee has permission over

integer

None.

PermissionType

Type of the calendar permission 0: Deny 1: Read 2: Report 3: Write

CalendarPermission

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "TargetEmployeeId": 1,
    "TargetEmployeeName": "sample string 2",
    "TargetAccessUserId": 1,
    "TargetRelationId": 3,
    "PermissionType": 0
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCalendarAuthorizedPermission xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Employee">
  <CalendarAuthorizedPermission>
    <PermissionType>Deny</PermissionType>
    <TargetAccessUserId>1</TargetAccessUserId>
    <TargetEmployeeId>1</TargetEmployeeId>
    <TargetEmployeeName>sample string 2</TargetEmployeeName>
    <TargetRelationId>3</TargetRelationId>
  </CalendarAuthorizedPermission>
  <CalendarAuthorizedPermission>
    <PermissionType>Deny</PermissionType>
    <TargetAccessUserId>1</TargetAccessUserId>
    <TargetEmployeeId>1</TargetEmployeeId>
    <TargetEmployeeName>sample string 2</TargetEmployeeName>
    <TargetRelationId>3</TargetRelationId>
  </CalendarAuthorizedPermission>
</ArrayOfCalendarAuthorizedPermission>