You can create a script by posting text to the script endpoint.
Every script needs to be located within an organization, a project and a module so you can either explicitly define them or they will be defaulted for you.
As scripts cannot be changed, you'll need to create a new version to update them.
You can get an overview of all your scripts by listing them or you can can retrieve scripts by script ID.
import audiostack audiostack.api_key = "<<apiKey>>" # Create a new script and print the script created script = audiostack.Content.Script.create( scriptText="""<as:section name="intro" soundsegment="intro">My first script</as:section>""" ) print(script)
Updated 3 months ago