Update External SWML Handler
PATCH/resources/external_swml_handlers/:id
Updates an External SWML Handler by ID
Request
Path Parameters
Unique ID of a External SWML Handler.
- application/json
Body
required
Name of the External SWML Handler.
Possible values: [calling
]
Default value: calling
Used for of the External SWML Handler.
Primary request url of the External SWML Handler.
Possible values: [GET
, POST
]
Default value: POST
Primary request method of the External SWML Handler.
Fallback request url of the External SWML Handler.
Possible values: [GET
, POST
]
Default value: POST
Fallback request method of the External SWML Handler.
Status callback url of the External SWML Handler.
Possible values: [GET
, POST
]
Default value: POST
Status callback method of the External SWML Handler.
Responses
- 200
- 401
- 404
- 422
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
Universal Unique Identifier.
Name of the External SWML Handler.
Possible values: [calling
]
Used for of the External SWML Handler.
Primary request url of the External SWML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
Fallback request url of the External SWML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
Status callback url of the External SWML Handler.
Possible values: [GET
, POST
]
The method type to use for the URL
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "My External SWML 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"
}
]
}