Update the status of an Execution to `ended`.
Executions of Studio flows
Update the status of an Execution to ended
.
Path parameters
-
The SID of the Flow with the Execution resources to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FW[0-9a-fA-F]{32}$
. -
The SID of the Execution resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FN[0-9a-fA-F]{32}$
.
POST
/v2/Flows/{FlowSid}/Executions/{Sid}
curl \
--request POST 'https://studio.twilio.com/v2/Flows/{FlowSid}/Executions/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=ended'
Request example
{"Status"=>"ended"}
Response examples (200)
{
"sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions/FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"steps": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions/FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Steps",
"execution_context": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions/FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Context"
},
"status": "ended",
"context": {},
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2017-11-06T12:00:00Z",
"date_updated": "2017-11-06T12:00:00Z",
"contact_channel_address": "+14155555555"
}