Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit c6cefe1

Browse files
committed
Fix dict update and line break
1 parent 18bf21b commit c6cefe1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rest/taskrouter/taskchannels/instance/post/example-1/example-1.7.x.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212
client = Client(account_sid, auth_token)
1313

14-
task_channel = client.taskrouter.workspaces(workspace_sid).task_channels(task_channel_sid)
14+
task_channel = client.taskrouter.workspaces(workspace_sid).task_channels(
15+
task_channel_sid
16+
)
1517

16-
task_channel.update("friendly_name", "My Channel")
18+
task_channel.update({"friendly_name": "My Channel"})
1719

1820
print(task_channel.friendly_name)
1921
print(task_channel.unique_name)

0 commit comments

Comments
 (0)