8000 fix tasks().create sample to include workflow_sid · randy3465/twilio-python@f20694f · GitHub
[go: up one dir, main page]

Skip to content

Commit f20694f

Browse files
fix tasks().create sample to include workflow_sid
1 parent 1fdff6d commit f20694f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/usage/taskrouter.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ To create a new :class:`Task` via the REST API:
205205
206206
# See previous examples to create a Workspace
207207
WORKSPACE_SID = "WSZZZZZZZZZZZZZZ"
208+
WORKFLOW_SID = "WWXXXXXXXXXXXXXX"
208209
# Some JSON containing attributes for this task. User-defined.
209210
TASK_ATTRIBUTES = """{
210211
"type": "call",
@@ -219,5 +220,6 @@ To create a new :class:`Task` via the REST API:
219220
task = client.tasks(WORKSPACE_SID).create(
220221
attributes=TASK_ATTRIBUTES,
221222
assignment_status='pending',
223+
workflow_sid=WORKFLOW_SID
222224
)
223225
print task.sid

0 commit comments

Comments
 (0)
0