---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Update knowledge object

Updates a knowledge object's name and returns the updated object.

## When to use it

Use it to rename a knowledge object. To refresh its content, use [Reindex a knowledge object](https://docs.superwise.ai/reference/reindex_knowledge).

## Required parameters

* `knowledge_id` (path): the ID of the knowledge object.
* `name` (body): the new name. The field must be present and can be `null`.

## Response

A successful call returns `200 OK` with the `Knowledge` object: `id`, `name`, `knowledge_metadata`, `embedding_model`, `created_by`, and timestamps including `indexed_at`.

**Related:** [Get a knowledge object](https://docs.superwise.ai/reference/get_knowledge_by_id), [Reindex a knowledge object](https://docs.superwise.ai/reference/reindex_knowledge), [Delete a knowledge object](https://docs.superwise.ai/reference/delete_knowledge)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/knowledge/{knowledge_id}": {
      "patch": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Update knowledge object",
        "operationId": "update_knowledge",
        "parameters": [
          {
            "name": "knowledge_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid4",
              "title": "Knowledge Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KnowledgeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Knowledge"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "EmbeddingModel": {
        "properties": {
          "provider_id": {
            "type": "string",
            "title": "Provider Id"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "provider_id"
        ],
        "title": "EmbeddingModel"
      },
      "FileKnowledgeMetadata": {
        "properties": {
          "type": {
            "type": "string",
            "const": "file",
            "title": "Type",
            "default": "file"
          },
          "file_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "minItems": 1,
            "title": "File Ids"
          }
        },
        "type": "object",
        "required": [
          "file_ids"
        ],
        "title": "FileKnowledgeMetadata"
      },
      "Knowledge": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid4",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "maxLength": 50,
            "minLength": 1,
            "title": "Name"
          },
          "knowledge_metadata": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/UrlKnowledgeMetadata"
              },
              {
                "$ref": "#/components/schemas/FileKnowledgeMetadata"
              }
            ],
            "title": "Knowledge Metadata",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "file": "#/components/schemas/FileKnowledgeMetadata",
                "url": "#/components/schemas/UrlKnowledgeMetadata"
              }
            }
          },
          "embedding_model": {
            "$ref": "#/components/schemas/EmbeddingModel"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "indexed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Indexed At"
          },
          "deleted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "knowledge_metadata",
          "embedding_model",
          "created_by"
        ],
        "title": "Knowledge"
      },
      "KnowledgeUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "KnowledgeUpdate"
      },
      "UrlKnowledgeMetadata": {
        "properties": {
          "type": {
            "type": "string",
            "const": "url",
            "title": "Type",
            "default": "url"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "max_depth": {
            "type": "integer",
            "maximum": 5,
            "minimum": 1,
            "title": "Max Depth"
          }
        },
        "type": "object",
        "required": [
          "url",
          "max_depth"
        ],
        "title": "UrlKnowledgeMetadata"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```