Update External LAML Handler
PATCH/resources/external_laml_handlers/:id
Updates an External LAML Handler by ID
Request
Path Parameters
Unique ID of a External LAML Handler.
- application/json
Body
required
Name of the External LAML Handler.
Possible values: [calling
, messaging
]
Default value: calling
Used for of the External LAML Handler.
Primary request url of the External LAML Handler.
Possible values: [GET
, POST
]
Default value: POST
Primary request method of the External LAML Handler.
Fallback request url of the External LAML Handler.
Possible values: [GET
, POST
]
Default value: POST
Fallback request method of the External LAML Handler.
Status callback url of the External LAML Handler.
Possible values: [GET
, POST
]
Default value: POST
Status callback method of the External LAML Handler.
Responses
- 200
- 401
- 404
- 422
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
Universal Unique Identifier.
Name of the External LAML Handler.
Possible values: [calling
, messaging
]
Sets the handler to handle incomming calls
or messages
.
Primary request url of the External LAML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
Fallback request url of the External LAML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
Status callback url of the External LAML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "My External LAML Handler",
"used_for": "calling",
"primary_request_url": "https://primary.com",
"primary_request_method": "GET",
"fallback_request_url": "https://fallback.com",
"fallback_request_method": "GET",
"status_callback_url": "https://callback.com",
"status_callback_method": "GET"
}
Access is unauthorized.
- application/json
- Schema
Schema
string
Possible values: [Unauthorized
]
The server cannot find the requested resource.
- application/json
- Schema
Schema
string
Possible values: [Not Found
]
Client error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Error type.
Error code.
Error details.
Request parameter associated with this error.
Link to developer resource for this error.
{
"errors": [
{
"type": "validation_error",
"code": "http_url_required",
"message": "This value must be an HTTP or HTTPS URL.",
"attribute": "status_callback_url",
"url": "https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes/#http_url_required"
}
]
}