Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Book Appointment Action
This action is available in API version 65.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v65.0/connect/health/appointment-management/appointment
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: OAuth2 Bearer Token
Inputs
| Input | Details |
|---|---|
| appointmentTypes |
|
| channelId |
|
| comment |
|
| description |
|
| endDate |
|
| participants |
|
| serviceCategories |
|
| serviceTypes |
|
| slots |
|
| sourceSystem |
|
| specialties |
|
| startDate |
|
| timeZone |
|
| workTypeId |
|
Outputs
| Output | Details |
|---|---|
| id |
|
| isSuccess |
|
| status |
|
| errorMessages |
|
Example
Sample Request
1{
2 "workTypeId": "08qxxG000000Axq6xxC",
3 "channelId": "0eFxx000000NNOVxx0",
4 "description": "Discussion",
5 "startDate": "2025-07-21T18:00:00.000Z",
6 "endDate": "2025-07-21T18:30:00.000Z",
7 "comment": "Payload for the testing",
8 "participants": [
9 {
10 "reference": "Patient/001xx000012udqQxxQ"
11 },
12 {
13 "reference": "Practitioner/0bSxx0000005JoaxxE",
14 "isReferenceRequired": true
15 },
16 {
17 "reference": "Facility/001xx000012udqhxxA"
18 }
19 ]
20}Sample Response
1[
2 {
3 "id": "08pxx000000Axq6xxC",
4 "isSuccess": true,
5 "status": "scheduled",
6 "error": []
7 }
8]