Storyden
Robots

Update a robot

Update a Robot's name, description, playbook, direct tools, or assigned Toolsets.

PATCH
/robots/{robot_id}

Update a Robot's name, description, playbook, direct tools, or assigned Toolsets.

Authorization

cookiestoryden-session<token>

Path Parameters

robot_id*string

Robot ID

Formatxid

Request Body

application/json
  1. body
name?string

The name of the robot

description?string

Human-readable description of the robot's purpose

playbook?string

The directive/system prompt that defines the robot's behavior

model?RobotModelRef

Fully-qualified Robot model reference in provider/model format.

Match^[^/]+/.+$
workspace_id?|

A unique identifier for this resource.

Formatxid
tools?array<string>

A list of raw tool names contained by a Toolset.

toolsets?array<string>

Reusable Toolset IDs assigned to a Robot.

meta?

Arbitrary metadata for the resource.

Response Body

Robot retrieved.

application/json
  1. response
id*Identifier

A unique identifier for this resource.

Formatxid
createdAt*string

The time the resource was created.

Formatdate-time
updatedAt*string

The time the resource was updated.

Formatdate-time
deletedAt?string

The time the resource was soft-deleted.

Formatdate-time
misc?

Arbitrary extra data stored with the resource.

name*string

The name of the robot

description*string

Human-readable description of the robot's purpose

playbook*string

The directive/system prompt that defines the robot's behavior

model*RobotModelRef

Fully-qualified Robot model reference in provider/model format.

Match^[^/]+/.+$
workspace_id?|

Optional default workspace template for this robot.

Formatxid
author*

A minimal reference to an account.

tools*array<string>

A list of raw tool names contained by a Toolset.

toolsets*array<string>

Reusable Toolset IDs assigned to a Robot.

meta?

Arbitrary metadata for the resource.

Example Request
curl -X PATCH 'https://example.com/api/robots/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "deletedAt": "2019-08-24T14:15:22Z",  "misc": {},  "name": "string",  "description": "string",  "playbook": "string",  "model": "string",  "workspace_id": null,  "author": {    "id": "string",    "joined": "2019-08-24T14:15:22Z",    "suspended": "2019-08-24T14:15:22Z",    "handle": "string",    "name": "string",    "signature": "string",    "roles": [      {        "badge": true,        "default": true,        "id": "string",        "name": "string",        "colour": "string",        "meta": {}      }    ]  },  "tools": [    "string"  ],  "toolsets": [    "string"  ],  "meta": {}}