Update knowledge

PUT /v1/Knowledge/{id}

Update knowledge

Path parameters

  • id string Required
application/json

Body

  • description string

    The description of the knowledge source.

  • knowledge_source_details object

    The details of the knowledge source based on the type.

  • name string

    The name of the knowledge source.

  • policy object

    The policy associated with the tool.

    Hide policy attributes Show policy attributes object
    • description string

      The description of the policy.

    • id string

      The Policy ID.

      Format should match the following pattern: ^aia_plcy_.+$.

    • name string

      The name of the policy.

    • type string

      The description of the policy.

  • type string

    The description of the knowledge source.

  • embedding_model string

    The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • description string

      The type of knowledge source.

    • id string Required

      The description of knowledge.

      Format should match the following pattern: ^aia_know_.+$.

    • account_sid string

      The SID of the Account that created the Knowledge resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • knowledge_source_details object

      The details of the knowledge source based on the type.

    • name string Required

      The name of the knowledge source.

    • status string

      The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')

    • type string Required

      The type of knowledge source ('Web', 'Database', 'Text', 'File')

    • url string

      The url of the knowledge resource.

    • embedding_model string

      The embedding model to be used for the knowledge source.

    • date_created string(date-time) Required

      The date and time in GMT when the Knowledge was created specified in ISO 8601 format.

    • date_updated string(date-time) Required

      The date and time in GMT when the Knowledge was last updated specified in ISO 8601 format.

PUT /v1/Knowledge/{id}
curl \
 --request PUT 'https://assistants.twilio.com/v1/Knowledge/{id}' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"description":"string","knowledge_source_details":{},"name":"string","policy":{"description":"string","id":"string","name":"string","type":"string"},"type":"string","embedding_model":"string"}'
Request examples
{
  "description": "string",
  "knowledge_source_details": {},
  "name": "string",
  "policy": {
    "description": "string",
    "id": "string",
    "name": "string",
    "type": "string"
  },
  "type": "string",
  "embedding_model": "string"
}
Response examples (200)
{
  "description": "string",
  "id": "string",
  "account_sid": "string",
  "knowledge_source_details": {},
  "name": "string",
  "status": "string",
  "type": "string",
  "url": "string",
  "embedding_model": "string",
  "date_created": "2025-05-04T09:42:00Z",
  "date_updated": "2025-05-04T09:42:00Z"
}