Update an cXML Bin
POST/Accounts/:AccountSid/LamlBins/:Sid
To update an XML Bin, make a PUT request to the cXML bin 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.
Permissions
The API token must include one of the following scopes: Voice or Messaging or Fax.
Request
Path Parameters
The unique identifier for the account this Bin is associated with.
The unique identifier of the XML Bin on SignalWire. This can be used to show, update, or delete the Bin programmatically.
- application/x-www-form-urlencoded
Body
required
A friendly name given to the cXML bin to help distinguish and search for different applications within your project.
The contents of the cXML bins, this evaluate to valid XML, with additional support for mustache templating.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
The unique identifier of the cXML bin on SignalWire. This can be used to show, update, or delete the Bin programmatically.
The date and time, in ISO 8601 format, the Bin was created.
The date and time, in ISO 8601 format, the Bin was updated.
The date and time, in ISO 8601 format, the Bin was last accessed.
The unique identifier for the account this Bin is associated with.
A friendly name given to the cXML bin to help distinguish and search for different applications within your project.
The contents of the cXML bins, this evaluate to valid XML, with additional support for mustache templating.
The unique URL to the raw contents of the cXML Application. Use this as the URL for configuring webhooks or anything needing the XML returned.
The version of the SignalWire API.
The URL of this resource.
{
"sid": "5184b831-184f-4209-872d-ccdccc80f2f1",
"date_created": "2019-11-26T20:00:00Z",
"date_updated": "Sat, 15 Sept 2018 10:00:00 +0000",
"date_last_accessed": "2020-06-05T20:00:00Z",
"account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
"name": "Death Star IVR",
"contents": "<Response><Say>Hello!</Say></Response>",
"request_url": "https://your-space.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",
"api_version": "2010-04-01",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1"
}