8000 Merge pull request #218 from theLearningChan/patch-1 · jkzilla/twilio-python@7091630 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7091630

Browse files
committed
Merge pull request twilio#218 from theLearningChan/patch-1
fix tasks().create sample to include workflow_sid
2 parents 1fdff6d + f20694f commit 7091630

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