Storyden
Robots

Update a robot workspace

Update a reusable Robot workspace template.

PATCH
/robots/workspaces/{workspace_id}

Update a reusable Robot workspace template.

Authorization

cookiestoryden-session<token>

Path Parameters

workspace_id*string

Robot workspace ID

Formatxid

Request Body

application/json
  1. body
name?string

The name of the workspace template.

description?string

Human-readable description of the workspace template.

config?

Provider-specific template configuration.

allow_untrusted_commands?boolean

Allow robots using this template to run arbitrary shell commands.

meta?

Arbitrary metadata for the resource.

Response Body

Robot workspace 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 workspace template.

description*string

Human-readable description of the workspace template.

provider*RobotWorkspaceProvider

Robot workspace provider type.

Value in"local""sprites"
config*

Provider-specific template configuration.

allow_untrusted_commands*boolean

Allow robots using this workspace template to run arbitrary shell commands.

meta*

Arbitrary metadata for the resource.

created_by*

A minimal reference to an account.

Example Request
curl -X PATCH 'https://example.com/api/robots/workspaces/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",  "provider": "local",  "config": {},  "allow_untrusted_commands": true,  "meta": {},  "created_by": {    "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": {}      }    ]  }}