Comments (3)
Hi @vonKingsley Thanks for reaching out. In the code snippet shared , it seems the api you are using expects the Interaction Channel resource
in sid instead of Interaction Channel Participant resource
which you are passing currently. It seems like the doc for snippets needs to be updated as well. However if you ru the command
twilio api:flex:v1:interactions:channels:participants:update --help
you can verify that the api expects Interaction Channel resource
in sid
. Same is mentioned here in the doc
from twilio-cli-core.
Thanks @kridai . I believe the docs may be incorrect on that as well as the --help flag.
The --help flag states 4 required flags
REQUIRED FLAGS
--channel-sid=<value> The Channel Sid for this Participant.
--interaction-sid=<value> The Interaction Sid for this channel.
--sid=<value> The unique string created by Twilio to identify an Interaction Channel resource.
--status=<value> The Participant's status. Can be: `closed` or `wrapup`. Participant must be an agent.
Since we are updating the Interactions Channel Participant endpoint, I'm not sure why the main --sid would use the Interactions Channel resource, and not the Interactions Channel Participant resource?
I believe it should be the following
--channel-sid, This should be the Interaction Channel Resource --UO
--interaction-sid, for the Flex interaction --KD
--sid, This should be the Interactions Channel Participant resource --UT
Also I want to mention that using python or node libraries this is actually the correct way to call this API endpoint with a sid that starts with UT
channel = twilio.fetch_interaction("KD{32}").channels("UO{32}")
print('hey', channel.participants.list())
-> [<Twilio.FlexApi.V1.InteractionChannelParticipantInstance interaction_sid=KD{32} channel_sid=UO{32} sid=**UT**{32}>, <Twilio.FlexApi.V1.InteractionChannelParticipantInstance interaction_sid=KD{32} channel_sid=UO{32} sid=**UT**{32}>]
channel.participants("**UT**{32}").update(status="closed")
from twilio-cli-core.
Hi @vonKingsley ,
In order to properly debug this issue, please file a support ticket.
As a temporary workaround, you can pass the --skip-parameter-validation flag:
--skip-parameter-validation
Skips client-side parameter validation. Useful for debugging when twilio-cli
is being overly-aggressive in validating parameter values.
Applies to the `twilio login`, `twilio profiles:add`, and all `twilio api` sub-commands.
from twilio-cli-core.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio-cli-core.