Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update and remove operations to client.studio.v2.flows.update #786

Open
allavytalize opened this issue Apr 10, 2024 · 1 comment
Open
Labels
status: waiting for feedback waiting for feedback from the submitter

Comments

@allavytalize
Copy link

Issue Summary

This is a feature request.
Twilio studio api already supports update and remove operations. Why not add them on the twilio-python client just like create?
https://www.twilio.com/docs/studio/rest-api/v2/flow#update-a-flow-resource
https://www.twilio.com/docs/studio/rest-api/v2/flow#delete-a-flow-resource

Steps to Reproduce

  1. Try to use update or remove operation on v2.flows resource.

Code Snippet

from twilio.rest import Client
client = Client(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN)
client.studio.v2.flows.update(...)

Exception/Log

AttributeError: 'FlowList' object has no attribute 'update'

Technical details:

  • twilio-python version: 9.0.4
  • python version: 3.11.6
@tiwarishubham635
Copy link
Contributor

Hi @allavytalize! The fetch, update and delete functions are available for a specific Flow resource only. Thus if you want to update a particular Flow resource, you are required to provide its sid like FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
While in case of create you are creating a new Flow resource, in case of list you are listing all the resources. Thus no particular Flow resource sid is required.
I think this helps!

@tiwarishubham635 tiwarishubham635 added the status: waiting for feedback waiting for feedback from the submitter label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for feedback waiting for feedback from the submitter
Projects
None yet
Development

No branches or pull requests

2 participants