Update a cXML Application
To update a cXML Application, make a POST
request to the cXML Application resource.
Use the unique ID that was returned from your previous request to identify the specific instance.
Only parameters passed in will be updated, others will be ignored.
THE API FORMERLY KNOWN AS LĀML
The Compatibility API and cXML were previously known as "LāML".
laml
still appears in endpoint URLs, and the cXML namespace of the REST Client is still titled LaML
.
Don't worry, it's all cXML!
Parameters
Parameter | Description |
---|---|
Name Optional | A friendly name given to the cXML Application to help distinguish and search for different Applications within your project. |
Contents Optional | The contents of the cXML Application - if not provided, it will be created with the default contents: <?xml version="1.0" encoding="UTF-8"?>\n<Response>\n</Response> |
Request
POST /laml_bins
- cURL
curl https://{SPACE}.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1 \
-X POST \
-u 'YourProjectID:YourAuthToken' \
--data-urlencode "Name=Hoth IVR"
Responses
200 OK
{
"sid": "5184b831-184f-4209-872d-ccdccc80f2f1",
"date_created": "2019-11-26T20:00:00Z",
"date_updated": "2020-05-05T20:00:00Z",
"date_last_accessed": null,
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"name": "Hoth IVR",
"contents": "<Response><Say>Hello, welcome to the Death Star. Your call is very important to us.</Say><Hangup /></Response>",
"request_url": "https://{SPACE}.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",
"num_requests": 0,
"api_version": "2010-04-01",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1",
}