POST Sync/Change
Handle a change made to an entity
Request Information
URI Parameters
None.
Body Parameters
ChangeEventJobRequestName | Description | Type | Additional information |
---|---|---|---|
ChangeEventType | EChangeEventType |
None. |
|
ActionType | EActionType |
None. |
|
ScopeType | EChangeEventScopeType |
None. |
|
ScopeId | string |
None. |
|
ReferenceId | string |
None. |
|
Details | ChangeEventPayload |
None. |
|
Origin | string |
None. |
|
TransactionKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ChangeEventType": "None", "ActionType": "Create", "ScopeType": 0, "ScopeId": "sample string 1", "ReferenceId": "sample string 2", "Details": { "AppointmentChange": { "Details": { "Id": 1, "StaffId": 2, "LocationId": 3, "VisitTypeId": 4, "Start": "2024-11-21T06:13:20.7552091-08:00", "End": "2024-11-21T06:13:20.7552091-08:00" }, "PreviousDetails": { "Id": 1, "StaffId": 2, "LocationId": 3, "VisitTypeId": 4, "Start": "2024-11-21T06:13:20.7552091-08:00", "End": "2024-11-21T06:13:20.7552091-08:00" } }, "AppointmentCancellation": { "Ids": [ 1, 2 ], "IsLateCancel": true, "NotifyConsumer": true }, "ClassCancellation": { "ClassInstanceId": 1, "NotifyConsumer": true, "NotifyInstructor": true, "ConsumerIds": [ 1, 2 ], "DeletedBy": "sample string 4", "DeletedDateTime": "2024-11-21T06:13:20.7569818-08:00" }, "ClassScheduleChange": { "ClassId": 1, "DateForwardClassId": 1, "Start": "2024-11-21T06:13:20.7575279-08:00", "End": "2024-11-21T06:13:20.7575279-08:00", "SpecifiedDays": [ 0, 0 ] } }, "Origin": "sample string 3", "TransactionKey": "sample string 4" }
application/xml, text/xml
Sample:
<ChangeEventJobRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Synchronization.Models"> <ActionType>Create</ActionType> <ChangeEventType>None</ChangeEventType> <Details xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Synchronization.Models.ChangeEventPayloads"> <d2p1:AppointmentCancellation> <d2p1:Ids xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:long>1</d4p1:long> <d4p1:long>2</d4p1:long> </d2p1:Ids> <d2p1:IsLateCancel>true</d2p1:IsLateCancel> <d2p1:NotifyConsumer>true</d2p1:NotifyConsumer> </d2p1:AppointmentCancellation> <d2p1:AppointmentChange> <d2p1:Details> <d2p1:End>2024-11-21T06:13:20.7552091-08:00</d2p1:End> <d2p1:Id>1</d2p1:Id> <d2p1:LocationId>3</d2p1:LocationId> <d2p1:StaffId>2</d2p1:StaffId> <d2p1:Start>2024-11-21T06:13:20.7552091-08:00</d2p1:Start> <d2p1:VisitTypeId>4</d2p1:VisitTypeId> </d2p1:Details> <d2p1:PreviousDetails> <d2p1:End>2024-11-21T06:13:20.7552091-08:00</d2p1:End> <d2p1:Id>1</d2p1:Id> <d2p1:LocationId>3</d2p1:LocationId> <d2p1:StaffId>2</d2p1:StaffId> <d2p1:Start>2024-11-21T06:13:20.7552091-08:00</d2p1:Start> <d2p1:VisitTypeId>4</d2p1:VisitTypeId> </d2p1:PreviousDetails> </d2p1:AppointmentChange> <d2p1:ClassCancellation> <d2p1:ClassInstanceId>1</d2p1:ClassInstanceId> <d2p1:ConsumerIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:long>1</d4p1:long> <d4p1:long>2</d4p1:long> </d2p1:ConsumerIds> <d2p1:DeletedBy>sample string 4</d2p1:DeletedBy> <d2p1:DeletedDateTime>2024-11-21T06:13:20.7569818-08:00</d2p1:DeletedDateTime> <d2p1:NotifyConsumer>true</d2p1:NotifyConsumer> <d2p1:NotifyInstructor>true</d2p1:NotifyInstructor> </d2p1:ClassCancellation> <d2p1:ClassScheduleChange> <d2p1:ClassId>1</d2p1:ClassId> <d2p1:DateForwardClassId>1</d2p1:DateForwardClassId> <d2p1:End>2024-11-21T06:13:20.7575279-08:00</d2p1:End> <d2p1:SpecifiedDays xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek> <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek> </d2p1:SpecifiedDays> <d2p1:Start>2024-11-21T06:13:20.7575279-08:00</d2p1:Start> </d2p1:ClassScheduleChange> </Details> <Origin>sample string 3</Origin> <ReferenceId>sample string 2</ReferenceId> <ScopeId>sample string 1</ScopeId> <ScopeType>Subscriber</ScopeType> <TransactionKey>sample string 4</TransactionKey> </ChangeEventJobRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.