Skip to main content
PATCH
Update Outcome
Send only the fields you want to change. Updating script saves a new version and increases snippet_version by 1. Runs after that use the new version.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The outcome ID.

Body Parameters

string
A new name. 1 to 100 characters, letters and underscores only.
string
The new JavaScript source, up to 200,000 characters. It follows the same rules as Create Outcome.
object
Replaces the stored metadata.

Response

object
The updated outcome, with the same fields as Create Outcome returns.
null | array
null on success, otherwise an array of error objects.

Docs for agents: llms.txt