Changes where and how a SWML Webhook requests instructions from your server. Use it when the server-backed handler's routing changes; use [Update SWML Script](/docs/apis/rest/swml-scripts/update-swml-script) for SWML stored in SignalWire.
#### Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.
[Learn more about API scopes](/docs/platform/your-signalwire-api-space).
Request
This endpoint expects an object.
namestringOptional
Name of the SWML Webhook.
used_forenumOptionalDefaults to calling
Indicates whether this SWML Webhook handles inbound calls or inbound messages. Determines the payload SignalWire POSTs to primary_request_url.
primary_request_urlstringOptionalformat: "uri"
primary_request_methodenumOptionalDefaults to POST
Primary request method of the SWML Webhook.
fallback_request_urlstringOptionalformat: "uri"
fallback_request_methodenumOptionalDefaults to POST
Fallback request method of the SWML Webhook.
status_callback_urlstringOptionalformat: "uri"
URL to receive message status callback events for outbound messages sent by this webhook (reply or send_sms). See the Message status callback webhook for the payload your URL will receive.
status_callback_methodenumOptionalDefaults to POST
Status callback method of the SWML Webhook.
Response
The request has succeeded.
idstringformat: "uuid"
Unique ID of the SWML Webhook.
project_idstringformat: "uuid"
Unique ID of the Project.
display_namestring
Display name of the SWML Webhook Fabric Resource
typeenum
Type of the Fabric Resource
created_atdatetime
Date and time when the resource was created.
updated_atdatetime
Date and time when the resource was updated.
swml_webhookobject
SWML Webhook data.