Skip to content

Commit 0bd5e9b

Browse files
authored
Update New-CsMainlineAttenantAppointmentBookingFlowApiDefinitionsJSON.md
1 parent 8a6f18a commit 0bd5e9b

File tree

1 file changed

+47
-85
lines changed

1 file changed

+47
-85
lines changed

teams/teams-ps/teams/New-CsMainlineAttenantAppointmentBookingFlowApiDefinitionsJSON.md

Lines changed: 47 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -59,95 +59,57 @@ JSON example for the -ApiDefintions parameter
5959
},
6060

6161
"getCallerDetails" : [ // Can specify multiple endpoints below to get caller details by phone number, ID, email, etc.
62-
6362
{
64-
65-
"endpoint" : "<endpoint1>", // For example, https://www.contoso.com/home?parameter1=<parameter1>&parameter2=<parameter2>
66-
67-
"method_type": "GET" or "PUT" or "POST",
68-
69-
"description" : "<description>",
70-
71-
"query_strings" : { // Definition of the query string parameters in the endpoint
72-
73-
"parameter1" : "<parameter1>",
74-
75-
"parameter2" : "<parameter2>"
76-
77-
},
78-
79-
"headers" : {
80-
81-
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>", // replace <constant> with an expected value. <token> will be replaced by the response to generateAuthToken()
82-
83-
"X-API-Key" : "API-Key" // Only applicable for "api_key" auth type.
84-
85-
},
86-
87-
"body" : { // Sent as JSON payload
88-
89-
"in_parameter1" : "<in_parameter1>",
90-
91-
"in_parameter2" : "<in_parameter2>"
92-
93-
},
94-
95-
"response" : { // Response to 200 range of codes
96-
97-
"out_parameter1" : "<out_parameter1>",
98-
99-
"out_parameter2" : "<out_parameter2>",
100-
101-
"out_parameter3" : "<out_parameter3>"
102-
103-
}
104-
63+
"endpoint" : "<endpoint1>", // For example, https://www.contoso.com/home?parameter1=<parameter1>&parameter2=<parameter2>
64+
"method_type": "GET" or "PUT" or "POST",
65+
"description" : "<description>",
66+
"query_strings" : { // Definition of the query string parameters in the endpoint
67+
"parameter1" : "<parameter1>",
68+
"parameter2" : "<parameter2>"
69+
},
70+
71+
"headers" : {
72+
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>", // replace <constant> with an expected value. <token> will be replaced by the response to generateAuthToken()
73+
"X-API-Key" : "API-Key" // Only applicable for "api_key" auth type.
74+
},
75+
76+
"body" : { // Sent as JSON payload
77+
"in_parameter1" : "<in_parameter1>",
78+
"in_parameter2" : "<in_parameter2>"
79+
},
80+
81+
"response" : { // Response to 200 range of codes
82+
"out_parameter1" : "<out_parameter1>",
83+
"out_parameter2" : "<out_parameter2>",
84+
"out_parameter3" : "<out_parameter3>"
85+
}
10586
},
10687

10788
{
108-
109-
"endpoint" : "<endpoint2>",
110-
111-
"method_type": "GET" or "PUT" or "POST",
112-
113-
"description" : "<description>",
114-
115-
"query_strings" : {
116-
117-
"parameter1" : "<parameter1>",
118-
119-
"parameter2" : "<parameter2>"
120-
121-
},
122-
123-
"headers" : {
124-
125-
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>",
126-
127-
"X-API-Key" : "API-Key"
128-
129-
},
130-
131-
"body" : {
132-
133-
"in_parameter1" : "<in_parameter1>",
134-
135-
"in_parameter2" : "<in_parameter2>"
136-
137-
},
138-
139-
"response" : {
140-
141-
"out_parameter1" : "<out_parameter1>",
142-
143-
"out_parameter2" : "<out_parameter2>",
144-
145-
"out_parameter3" : "<out_parameter3>"
146-
147-
}
148-
149-
}
150-
89+
"endpoint" : "<endpoint2>",
90+
"method_type": "GET" or "PUT" or "POST",
91+
"description" : "<description>",
92+
"query_strings" : {
93+
"parameter1" : "<parameter1>",
94+
"parameter2" : "<parameter2>"
95+
},
96+
97+
"headers" : {
98+
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>",
99+
"X-API-Key" : "API-Key"
100+
},
101+
102+
"body" : {
103+
"in_parameter1" : "<in_parameter1>",
104+
"in_parameter2" : "<in_parameter2>"
105+
},
106+
107+
"r esponse" : {
108+
"out_parameter1" : "<out_parameter1>",
109+
"out_parameter2" : "<out_parameter2>",
110+
"out_parameter3" : "<out_parameter3>"
111+
}
112+
}
151113
],
152114

153115
"initiateCallerAuthentication" : [ // for SMS/email code, verification link

0 commit comments

Comments
 (0)