Skip to main content

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 BIN FORMERLY KNOWN AS LĀML

CXML Applications were previously known as "LāML Bins". 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

ParameterDescription
Name OptionalA friendly name given to the CXML Application to help distinguish and search for different Applications within your project.
Contents OptionalThe 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 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",
}