Body
-
CommitMessage string
Description of change made in the revision.
-
Definition Required
JSON representation of flow definition.
-
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
curl \
-X POST https://studio.twilio.com/v2/Flows \
--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 (201)
{
"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 (201)
{
"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"
}