Set the instructions the sandbox's agent follows
PUT
/sandboxes/{id}/agent/v1/instructions
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/agent/v1/instructions';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"text":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/agent/v1/instructions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "text": "example" }'The agent follows them from its next message. Empty text removes them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
text
required
Plain text or Markdown, as you’d write to a new colleague.
string
Example generated
{ "text": "example"}Responses
Section titled “Responses”The instructions
Media typeapplication/json
object
text
required
Plain text or Markdown, as you’d write to a new colleague.
string
Example generated
{ "text": "example"}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}