PUT
/
v1
/
runnable
/
{id}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "config_content": "<string>",
  "config_content_parsed": {
    "name": "<string>",
    "description": "<string>",
    "type": "prompt",
    "llms": [
      {
        "name": "<string>",
        "is_default": true,
        "provider": "openai",
        "model": "<string>",
        "params": {}
      }
    ],
    "inputs": [
      {
        "name": "<string>",
        "description": "<string>",
        "type": "text",
        "mime_types": [
          "<string>"
        ],
        "transforms": [
          {
            "name": "<string>",
            "type": "ocr",
            "provider": "<string>"
          }
        ],
        "required": true,
        "metadata": {
          "schema": {},
          "required": true
        }
      }
    ],
    "schemas": {},
    "prompt": {
      "system": "<string>",
      "messages": [
        {
          "role": "user",
          "content": "<string>"
        }
      ]
    }
  },
  "config_content_type": "prompt",
  "config_content_sha256": "<string>",
  "created_by": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "tags": [
    "<string>"
  ]
}
Update an existing runnable by its ID. You can update any field except id and account_id. When updating the configuration:
  1. Update the config_content field with the new configuration
  2. Update config_content_parsed to match the new configuration
  3. Calculate and update the config_content_sha256 field
  4. Ensure the config_content_type matches the type of configuration being provided
The runnable type (prompt, flow, or agent) cannot be changed after creation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json

Response

200 - application/json

Updated runnable

The response is of type object.