Create LaML Bin
POST/resources/laml_bins
Create LaML Bin
Request
- application/json
Body
required
name string
Example:
Forward Calls
contents string
Example:
<?xml version="1.0" encoding="UTF-8"?><Response></Response>
Responses
- 200
- 422
A LaML Bin
- application/json
- Schema
- Example (from schema)
Schema
id uuid
Example:
993ed018-9e79-4e50-b97b-984bd5534095
project_id uuid
Example:
1313fe58-5e14-4c11-bbe7-6fdfa11fe780
display_name string
Example:
Reception
type string
Example:
laml_bin
created_at date-time
Example:
2024-01-02T00:00:00Z
updated_at date-time
Example:
2024-01-02T00:00:00Z
laml_bin
object
id uuid
A unique identifier for the LAML Bin
contents string
Example:
<?xml version="1.0" encoding="UTF-8"?><Response></Response>
request_count integer
Example:
5
last_accessed_at date-time
Example:
2024-01-02T00:00:00Z
request_url uri
Example:
https://example.signalwire.com/laml-bins/2537c89e-2606-48c2-b3c2-bb601d863d1e
display_name string
Example:
My Laml Bin
{
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
"display_name": "Reception",
"type": "laml_bin",
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z",
"laml_bin": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"contents": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response></Response>",
"request_count": 5,
"last_accessed_at": "2024-01-02T00:00:00Z",
"request_url": "https://example.signalwire.com/laml-bins/2537c89e-2606-48c2-b3c2-bb601d863d1e",
"display_name": "My Laml Bin"
}
}
Unprocessable Entity
- application/json
- Schema
- Example (from schema)
Schema
type stringrequired
code stringrequired
message stringrequired
attribute string
url urirequired
{
"type": "validation_error",
"code": "invalid_parameter",
"message": "Name must be present",
"attribute": "name",
"url": "https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes#invalid_parameter"
}