Create a new appointment by the booking system's appointment id
POST/rest/resourceappointment/:appointmentId
Create a new appointment by the booking system's appointment id. The appointment must have at least one service with an orchestraId that corresponds to a valid bookable Orchestra service.
Example:
curl -i -u user:password -X POST -H 'content-type:application/json' -d '{
"startTime":"2020-09-25T15:30:00.000Z",
"endTime":"2020-09-25T16:30:00.000Z",
"branchId":1,
"title":"Appointment title",
"notes":"Appointment notes",
"customers":[{"firstName": "Olle","lastName": "Olsson","email": "olle@home.com","phone": "+123456789", "dateOfBirth":"1946-04-30"}],
"services":[{"orchestraId": 1,
"primaryResource": {"identifier": "doktordoktor",
"displayName": "Doktor Doktor","category": "STAFF", "resourceType":
{"description": "Doktor", "translations":
[{"language": "it","description": "Il Doktore"}, {"language": "en","description": "Doctor"}]
}},
"secondaryResources": [{"displayName": "Service 1","category": "ROOM",
"resourceType": {"description": "Intervju",
"translations": [{"language": "it","description": "colloquio"},
{"language": "en","description": "Interview"}]}}]
}]}'
'http://orchestra-host:orchestra-port/qsystem/rest/resourceappointment/{appointmentId}'
Request
Responses
- 201
A Json object of ResourceAppointmentOutput