POST PlanCare2Api/ClientAppointments/ChangeEmployeeForOccurrence
Creates a new appointment based on the occurrence for the changed employee. The existing occurrence will be changed to occurrence type 'DeletedOccurrence'
Requires 'Start' permission for function ClientGroupCalendar {6D8B7697-D439-4E6E-9773-52E40081B837}
Request Information
URI Parameters
None.
Body Parameters
The OccurrenceAppointment instance
ChangeEmployeeForOccurrence| Name | Description | Type | Additional information |
|---|---|---|---|
| ParentId |
The identifier of the parent appointment |
integer |
Required |
| Id |
The id of the occurrence |
integer |
- |
| OccurrenceIndex |
The index of the occurrence |
integer |
Required |
| EmployeeId |
The identifier of the employee |
integer |
Required |
| ContractOfServiceId |
The identifier of the contractOfService |
integer |
Nullable |
Request Formats
application/json, text/json
Sample:
{
"ParentId": 1,
"Id": 2,
"OccurrenceIndex": 3,
"EmployeeId": 4,
"ContractOfServiceId": 1
}
application/xml, text/xml
Sample:
<ChangeEmployeeForOccurrence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Calendar.Client"> <ContractOfServiceId>1</ContractOfServiceId> <EmployeeId>4</EmployeeId> <Id>2</Id> <OccurrenceIndex>3</OccurrenceIndex> <ParentId>1</ParentId> </ChangeEmployeeForOccurrence>
Response Information
Resource Description
Returns the HttpResponseMessage which contains the created EmployeeOccurrence (Id and Type) instance
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
- |
|
| Content | HttpContent |
- |
|
| StatusCode | HttpStatusCode |
- |
|
| ReasonPhrase | string |
- |
|
| Headers | Collection of Object |
- |
|
| RequestMessage | HttpRequestMessage |
- |
|
| IsSuccessStatusCode | boolean |
- |