14201: Enqueue: Invalid method value
ERROR
This error occurs when Twilio receives an <Enqueue> verb with a method attribute that is not GET or POST. The method attribute controls the HTTP method Twilio uses for the action URL, and POST is the default.
- The
<Enqueue>verb setsmethodto a value other thanGETorPOST. - Your application may be generating
<Enqueue>TwiML dynamically and inserting an unsupported value intomethod, because Twilio validates themethodattribute against the allowed valuesGETandPOST. - You intended to control how Twilio requests the
waitUrl, but<Enqueue>useswaitUrlMethodforwaitUrlrequests andmethodfor theactionURL.
- Set the
<Enqueue>methodattribute toGETorPOST. - Remove the
methodattribute if you do not need to override it. Twilio usesPOSTby default for theactionURL. - If you need to control the request method for the hold music or queue instructions endpoint, set
waitUrlMethodinstead ofmethod.