Class Service
Click here for a complete list of operations.
AddClientsToClasses
Adds clients to classes (signup).
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /0_5/ClassService.asmx HTTP/1.1 Host: api.mindbodyonline.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://clients.mindbodyonline.com/api/0_5/AddClientsToClasses" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddClientsToClasses xmlns="http://clients.mindbodyonline.com/api/0_5"> <Request> <ClientIDs> <string>string</string> <string>string</string> </ClientIDs> <ClassIDs> <int>int</int> <int>int</int> </ClassIDs> <Test>boolean</Test> <RequirePayment>boolean</RequirePayment> <Waitlist>boolean</Waitlist> <SendEmail>boolean</SendEmail> <WaitlistEntryID>int</WaitlistEntryID> <ClientServiceID>int</ClientServiceID> </Request> </AddClientsToClasses> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddClientsToClassesResponse xmlns="http://clients.mindbodyonline.com/api/0_5"> <AddClientsToClassesResult> <Classes> <Class> <ClassScheduleID>int</ClassScheduleID> <Visits xsi:nil="true" /> <Clients xsi:nil="true" /> <Location xsi:nil="true" /> <Resource xsi:nil="true" /> <MaxCapacity>int</MaxCapacity> <WebCapacity>int</WebCapacity> <TotalBooked>int</TotalBooked> <TotalBookedWaitlist>int</TotalBookedWaitlist> <WebBooked>int</WebBooked> <SemesterID>int</SemesterID> <IsCanceled>boolean</IsCanceled> <Substitute>boolean</Substitute> <Active>boolean</Active> <IsWaitlistAvailable>boolean</IsWaitlistAvailable> <IsEnrolled>boolean</IsEnrolled> <HideCancel>boolean</HideCancel> <Action>None or Added or Updated or Failed or Removed</Action> <ID>int</ID> <IsAvailable>boolean</IsAvailable> <StartDateTime>dateTime</StartDateTime> <EndDateTime>dateTime</EndDateTime> <ClassDescription xsi:nil="true" /> <Staff xsi:nil="true" /> </Class> <Class> <ClassScheduleID>int</ClassScheduleID> <Visits xsi:nil="true" /> <Clients xsi:nil="true" /> <Location xsi:nil="true" /> <Resource xsi:nil="true" /> <MaxCapacity>int</MaxCapacity> <WebCapacity>int</WebCapacity> <TotalBooked>int</TotalBooked> <TotalBookedWaitlist>int</TotalBookedWaitlist> <WebBooked>int</WebBooked> <SemesterID>int</SemesterID> <IsCanceled>boolean</IsCanceled> <Substitute>boolean</Substitute> <Active>boolean</Active> <IsWaitlistAvailable>boolean</IsWaitlistAvailable> <IsEnrolled>boolean</IsEnrolled> <HideCancel>boolean</HideCancel> <Action>None or Added or Updated or Failed or Removed</Action> <ID>int</ID> <IsAvailable>boolean</IsAvailable> <StartDateTime>dateTime</StartDateTime> <EndDateTime>dateTime</EndDateTime> <ClassDescription xsi:nil="true" /> <Staff xsi:nil="true" /> </Class> </Classes> </AddClientsToClassesResult> </AddClientsToClassesResponse> </soap:Body> </soap:Envelope>