Voiceflow bearer token
Update turn
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
},
)
data = response.json()vf test turn update --turn-id <turnID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>"
}Changes an existing test turn in place. The response carries only a confirmation message, so refetch the test turn to read its new values.
PATCH
/v1/stable/test-turn/{turnID}
Update turn
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/test-turn/<turnID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"type": "user",
"payload": {
"response": "<string>",
"variableStates": "<string>"
}
},
)
data = response.json()vf test turn update --turn-id <turnID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>"
}Authorizations
Query Parameters
Body
Show child attributes
Option 1
Show child attributes
Option 2
Show child attributes
Option 3
Show child attributes
Show child attributes
Show child attributes
Option 1
string
Option 2
PersonaItem — see its attributes above
Was this page helpful?
Thanks for your feedback.