Path parameters
-
The SID of the Workspace with the Workflow to update.
-
The SID of the Workflow resource to update.
Body
-
AssignmentCallbackUrl string(uri)
The URL from your application that will process task assignment events. See Handling Task Assignment Callback for more details.
-
Configuration string
A JSON string that contains the rules to apply to the Workflow. See Configuring Workflows for more information.
-
FallbackAssignmentCallbackUrl string(uri)
The URL that we should call when a call to the
assignment_callback_url
fails. -
FriendlyName string
A descriptive string that you create to describe the Workflow resource. For example,
Inbound Call Workflow
or2014 Outbound Campaign
. -
ReEvaluateTasks string
Whether or not to re-evaluate Tasks. The default is
false
, which means Tasks in the Workflow will not be processed through the assignment loop again. -
TaskReservationTimeout integer
How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to
86,400
(24 hours) and the default is120
.
curl \
-X POST https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AssignmentCallbackUrl=https%3A%2F%2Fexample.com&Configuration=string&FallbackAssignmentCallbackUrl=https%3A%2F%2Fexample.com&FriendlyName=string&ReEvaluateTasks=string&TaskReservationTimeout=42'
{
"AssignmentCallbackUrl": "https://example.com",
"Configuration": "string",
"FallbackAssignmentCallbackUrl": "https://example.com",
"FriendlyName": "string",
"ReEvaluateTasks": "string",
"TaskReservationTimeout": 42
}
{
"AssignmentCallbackUrl": "https://example.com",
"Configuration": "string",
"FallbackAssignmentCallbackUrl": "https://example.com",
"FriendlyName": "string",
"ReEvaluateTasks": "string",
"TaskReservationTimeout": 42
}
{
"account_sid": "string",
"assignment_callback_url": "https://example.com",
"configuration": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"document_content_type": "string",
"fallback_assignment_callback_url": "https://example.com",
"friendly_name": "string",
"links": {},
"sid": "string",
"task_reservation_timeout": 42,
"url": "https://example.com",
"workspace_sid": "string"
}
{
"account_sid": "string",
"assignment_callback_url": "https://example.com",
"configuration": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"document_content_type": "string",
"fallback_assignment_callback_url": "https://example.com",
"friendly_name": "string",
"links": {},
"sid": "string",
"task_reservation_timeout": 42,
"url": "https://example.com",
"workspace_sid": "string"
}