create
Create a new SWML script resource.
Request
name
Name of the SWML Script.
contents
The SWML document, as a JSON object or as a string of JSON or YAML. A Calling Script uses [calling SWML methods](/docs/swml/reference/calling); a Messaging Script uses [messaging SWML methods](/docs/swml/reference/messaging).
script_type
The kind of script to create. Defaults to `calling` when omitted, so set it to `messaging` explicitly to create a Messaging Script.
Allowed values:
status_callback_url
URL that receives status callbacks for messages sent or calls made by this script.
Response
id
Unique ID of the SWML Script.
project_id
Unique ID of the Project.
display_name
Display name of the SWML Script Fabric Resource
type
Type of the Fabric Resource
Allowed values:
created_at
Date and time when the resource was created.
updated_at
Date and time when the resource was updated.
swml_script
SWML Script data.
Response Example
Response