update
Replace a SWML script resource. Uses PUT for full replacement.
Path parameters
id
Unique ID of a SWML Script.
Request
name
Name of the SWML Script.
script_type
The kind of script. Omit to keep the script's current type.
Allowed values:
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).
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