GithubHelp home page GithubHelp logo

Comments (3)

kridai avatar kridai commented on September 8, 2024

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.

vonKingsley avatar vonKingsley commented on September 8, 2024

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.

AsabuHere avatar AsabuHere commented on September 8, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.