Skip to content

Commit 9bd1473

Browse files
authored
Update New-CsMainlineAttenantAppointmentBookingFlowApiDefinitionsJSON.md
1 parent e5ce5d1 commit 9bd1473

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

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

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Creates new Mainline Attendant appointment booking flow
1717

1818
## SYNTAX
1919

20-
```json
20+
```
2121
{
2222
"generateAuthToken" : { // Must be specified for "bearer_token_dynamic"
2323
"endpoint" : "<endpoint>", // For example, https://www.contoso.com/home?parameter1=<parameter1>&parameter2=<parameter2>
@@ -27,70 +27,70 @@ Creates new Mainline Attendant appointment booking flow
2727
"query_strings" : { // Description of the query string parameters in the endpoint
2828
"parameter1" : "<parameter1>",
2929
"parameter2" : "<parameter2>"
30-
},
30+
},
3131
3232
"headers" : {
3333
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>", // replace <constant> with an expected value
3434
"X-API-Key" : "API-Key" // Only applicable for "api_key" auth type.
35-
},
35+
},
3636
3737
"response" : { // Response to 200 range of codes
3838
"token" : "<token>" // this token will be used for APIs with "bearer_token_dynamic" auth type
39-
}
40-
},
41-
42-
"getCallerDetails" : [ // Can specify multiple endpoints below to get caller details by phone number, ID, email, etc.
43-
{
44-
"endpoint" : "<endpoint1>", // For example, https://www.contoso.com/home?parameter1=<parameter1>&parameter2=<parameter2>
45-
"method_type": "GET" or "PUT" or "POST",
46-
"description" : "<description>",
47-
"query_strings" : { // Definition of the query string parameters in the endpoint
48-
"parameter1" : "<parameter1>",
49-
"parameter2" : "<parameter2>"
50-
},
51-
52-
"headers" : {
53-
"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()
54-
"X-API-Key" : "API-Key" // Only applicable for "api_key" auth type.
39+
}
5540
},
5641
57-
"body" : { // Sent as JSON payload
58-
"in_parameter1" : "<in_parameter1>",
59-
"in_parameter2" : "<in_parameter2>"
60-
},
42+
"getCallerDetails" : [ // Can specify multiple endpoints below to get caller details by phone number, ID, email, etc.
43+
{
44+
"endpoint" : "<endpoint1>", // For example, https://www.contoso.com/home?parameter1=<parameter1>&parameter2=<parameter2>
45+
"method_type": "GET" or "PUT" or "POST",
46+
"description" : "<description>",
47+
"query_strings" : { // Definition of the query string parameters in the endpoint
48+
"parameter1" : "<parameter1>",
49+
"parameter2" : "<parameter2>"
50+
},
6151
62-
"response" : { // Response to 200 range of codes
63-
"out_parameter1" : "<out_parameter1>",
64-
"out_parameter2" : "<out_parameter2>",
65-
"out_parameter3" : "<out_parameter3>"
66-
}
67-
},
52+
"headers" : {
53+
"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()
54+
"X-API-Key" : "API-Key" // Only applicable for "api_key" auth type.
55+
},
6856
69-
{
70-
"endpoint" : "<endpoint2>",
71-
"method_type": "GET" or "PUT" or "POST",
72-
"description" : "<description>",
73-
"query_strings" : {
74-
"parameter1" : "<parameter1>",
75-
"parameter2" : "<parameter2>"
76-
},
57+
"body" : { // Sent as JSON payload
58+
"in_parameter1" : "<in_parameter1>",
59+
"in_parameter2" : "<in_parameter2>"
60+
},
7761
78-
"headers" : {
79-
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>",
80-
"X-API-Key" : "API-Key"
62+
"response" : { // Response to 200 range of codes
63+
"out_parameter1" : "<out_parameter1>",
64+
"out_parameter2" : "<out_parameter2>",
65+
"out_parameter3" : "<out_parameter3>"
66+
}
8167
},
8268
83-
"body" : {
84-
"in_parameter1" : "<in_parameter1>",
85-
"in_parameter2" : "<in_parameter2>"
86-
},
69+
{
70+
"endpoint" : "<endpoint2>",
71+
"method_type": "GET" or "PUT" or "POST",
72+
"description" : "<description>",
73+
"query_strings" : {
74+
"parameter1" : "<parameter1>",
75+
"parameter2" : "<parameter2>"
76+
},
8777
88-
"r esponse" : {
89-
"out_parameter1" : "<out_parameter1>",
90-
"out_parameter2" : "<out_parameter2>",
91-
"out_parameter3" : "<out_parameter3>"
92-
}
93-
}
78+
"headers" : {
79+
"Authorization" : "Basic <constant>" or "api-key <constant>" or "Bearer <constant>" or "Bearer <token>",
80+
"X-API-Key" : "API-Key"
81+
},
82+
83+
"body" : {
84+
"in_parameter1" : "<in_parameter1>",
85+
"in_parameter2" : "<in_parameter2>"
86+
},
87+
88+
"response" : {
89+
"out_parameter1" : "<out_parameter1>",
90+
"out_parameter2" : "<out_parameter2>",
91+
"out_parameter3" : "<out_parameter3>"
92+
}
93+
}
9494
],
9595
9696
"initiateCallerAuthentication" : [ // for SMS/email code, verification link

0 commit comments

Comments
 (0)