Create External SWML Handler
POST/resources/external_swml_handlers
Creates an External SWML Handler
Request
- application/json
Body
required
Name of the External SWML Handler.
My External SWML Handler
Used for of the External SWML Handler.
Possible values: [calling
]
calling
calling
Primary request url of the External SWML Handler.
https://primary.com
Primary request method of the External SWML Handler.
Possible values: [GET
, POST
]
POST
GET
Fallback request url of the External SWML Handler.
https://fallback.com
Fallback request method of the External SWML Handler.
Possible values: [GET
, POST
]
POST
GET
Status callback url of the External SWML Handler.
https://callback.com
Status callback method of the External SWML Handler.
Possible values: [GET
, POST
]
POST
POST
Responses
- 201
- 401
- 404
- 422
The request has succeeded and a new resource has been created as a result.
- application/json
- Schema
- Example (from schema)
Schema
Universal Unique Identifier.
Name of the External SWML Handler.
My External SWML Handler
Used for of the External SWML Handler.
Possible values: [calling
]
calling
Primary request url of the External SWML Handler.
https://primary.com
The method type to use for the URL
Possible values: [GET
, POST
]
Fallback request url of the External SWML Handler.
https://fallback.com
The method type to use for the URL
Possible values: [GET
, POST
]
Status callback url of the External SWML Handler.
https://callback.com
The method type to use for the URL
Possible values: [GET
, POST
]
{
"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"
}
]
}