Path parameters
-
The SID of the Flow resource to fetch.
Body
-
CommitMessage string
Description of change made in the revision.
-
JSON representation of flow definition.
-
FriendlyName string
The string that you assigned to describe the Flow.
-
The status of the Flow. Can be:
draft
orpublished
.Values are
draft
orpublished
.
POST /v2/Flows/{Sid}
curl \
-X POST https://studio.twilio.com/v2/Flows/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CommitMessage=string&FriendlyName=string&Status=draft'
Request example
{
"CommitMessage": "string",
"FriendlyName": "string",
"Status": "draft"
}
Request examples
{
"CommitMessage": "string",
"FriendlyName": "string",
"Status": "draft"
}
Response examples (200)
{
"account_sid": "string",
"commit_message": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"errors": [],
"friendly_name": "string",
"links": {},
"revision": 42,
"sid": "string",
"status": "draft",
"url": "https://example.com",
"valid": true,
"warnings": [],
"webhook_url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"commit_message": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"errors": [],
"friendly_name": "string",
"links": {},
"revision": 42,
"sid": "string",
"status": "draft",
"url": "https://example.com",
"valid": true,
"warnings": [],
"webhook_url": "https://example.com"
}