Skip to content

Commit d3b2c35

Browse files
committed
Fixed the verb and the array
1 parent 3fead63 commit d3b2c35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

voice/voice-api/transfer-call-inline-ncco.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
source "../../config.sh"
33
source "../../jwt.sh"
44

5-
curl -X POST https://api.nexmo.com/v1/calls/$UUID \
5+
curl -X PUT https://api.nexmo.com/v1/calls/$UUID \
66
-H "Authorization: Bearer "$JWT \
77
-H "Content-Type: application/json"\
88
-d '{"action": "transfer",
9-
"destination": {"type": "ncco", "ncco": ["action":"talk", "text":"This is a transfer action using an inline NCCO"]}}'
9+
"destination": {"type": "ncco", "ncco": [{"action":"talk", "text":"This is a transfer action using an inline NCCO"}]}}'

0 commit comments

Comments
 (0)