# Update knowledge (/th/growsocmed/docs/api-reference/ai-agents/update-knowledge)

Rename a source, or change pasted text (read again)

PATCH /knowledge/{id}

```json
{
  "tags": [
    "AI agents"
  ],
  "summary": "Update knowledge",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true,
      "name": "id",
      "in": "path"
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "body": {
              "type": "string",
              "maxLength": 200000
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {}
        }
      }
    }
  },
  "operationId": "update-knowledge",
  "description": "Rename a source, or change pasted text (read again)"
}
```