Path parameters
-
The SID of the Flow resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FW[0-9a-fA-F]{32}$
.
POST
/v2/Flows/{Sid}
curl \
--request POST 'https://studio.twilio.com/v2/Flows/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=published&Definition=%7B%22initial_state%22%3A+%22Trigger%22%7D&FriendlyName=Test+Flow'
Request example
{"Status"=>"published", "Definition"=>"{\"initial_state\": \"Trigger\"}", "FriendlyName"=>"Test Flow"}
Response examples (200)
{
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions",
"executions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions",
"test_users": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TestUsers"
},
"valid": true,
"errors": [],
"status": "published",
"revision": 1,
"warnings": [],
"definition": {
"initial_state": "Trigger"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_url": "http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2017-11-06T12:00:00Z",
"date_updated": "2017-11-06T12:00:00Z",
"friendly_name": "Test Flow",
"commit_message": null
}