> ## Documentation Index
> Fetch the complete documentation index at: https://developer.vanta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Answer Library entry

> Update an Answer Library entry.



## OpenAPI

````yaml /reference/manage-vanta.json patch /knowledge-base/answer-library/{id}
openapi: 3.0.0
info:
  title: Manage Vanta
  version: 1.0.0
  description: >-
    The REST API lets customers query and mutate Vanta's data. Use this API to
    automate bulk actions, query data for custom workflows and dashboards, and
    bolster your security operations


    **Note for Vanta Gov (FedRAMP) customers:** Select `Vanta Gov (FedRAMP)`
    from the server dropdown to issue requests against
    `https://api.vanta-gov.com`. The OAuth token URL shown below defaults to the
    commercial host — replace it with `https://api.vanta-gov.com/oauth/token`.
  termsOfService: https://www.vanta.com/terms
  license:
    name: UNLICENSED
  contact:
    name: API Support
    url: https://help.vanta.com/
    email: support@vanta.com
servers:
  - url: https://api.vanta.com/v1
    description: Vanta (Commercial)
  - url: https://api.vanta-gov.com/v1
    description: Vanta Gov (FedRAMP)
security: []
paths:
  /knowledge-base/answer-library/{id}:
    patch:
      tags:
        - Knowledge Base
      summary: Update Answer Library entry
      description: Update an Answer Library entry.
      operationId: UpdateAnswerLibraryEntryRoute
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAnswerLibraryEntryInput'
            example:
              answer: >-
                Yes. All customer data is encrypted at rest using AES-256, with
                keys managed in AWS KMS.
              expirationDate: '2025-12-31T00:00:00.000Z'
              tags:
                - categoryId: 507f1f77bcf86cd799439011
                  tagId: 507f1f77bcf86cd799439013
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseAnswerLibraryEntryOutput'
              examples:
                Example 1:
                  value:
                    id: 507f1f77bcf86cd799439031
                    question: Do you encrypt customer data at rest?
                    answer: >-
                      Yes. All customer data is encrypted at rest using AES-256,
                      with keys managed in AWS KMS.
                    expirationStatus: CURRENT
                    ownerAssignment:
                      type: User
                      id: 507f1f77bcf86cd799439041
                      displayName: Alex Rivera
                    expirationDate: '2025-12-31T00:00:00.000Z'
                    lastUpdated: '2024-10-12T16:08:42.000Z'
                    lastVerified: '2024-12-01T09:00:00.000Z'
                    tags:
                      - categoryId: 507f1f77bcf86cd799439011
                        tagId: 507f1f77bcf86cd799439013
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateAnswerLibraryEntryInput:
      properties:
        question:
          type: string
          description: The question text.
          example: Do you encrypt customer data at rest?
        answer:
          type: string
          description: The answer text.
          example: >-
            Yes. All customer data is encrypted at rest using AES-256, with keys
            managed in AWS KMS.
        ownerAssignment:
          allOf:
            - $ref: '#/components/schemas/AnswerLibraryActorAssignmentInput'
          nullable: true
          description: >-
            The actor to assign as owner. Pass `null` to clear. Currently only
            type

            "User" is supported.
        expirationDate:
          type: string
          nullable: true
          description: The expiration date in ISO 8601 format. Pass `null` to clear.
          example: '2025-12-31T00:00:00.000Z'
        tags:
          items:
            $ref: '#/components/schemas/TagInput'
          type: array
          description: >-
            Tags to associate with the entry. Replaces the existing tag set.
            Pass

            `[]` to clear all tags. Discover valid `categoryId` and `tagId`
            values

            via `GET /v1/customer-trust/tag-categories` (to list categories) and

            `GET /v1/customer-trust/tag-categories/{tagCategoryId}` (to list
            tags

            within a category).
      type: object
      additionalProperties: false
    KnowledgeBaseAnswerLibraryEntryOutput:
      properties:
        id:
          type: string
        question:
          type: string
        answer:
          type: string
        expirationStatus:
          type: string
          enum:
            - CURRENT
            - EXPIRED
        ownerAssignment:
          allOf:
            - $ref: '#/components/schemas/AnswerLibraryActorAssignment'
          nullable: true
        expirationDate:
          type: string
          nullable: true
        lastUpdated:
          type: string
        lastVerified:
          type: string
          nullable: true
        tags:
          items:
            $ref: '#/components/schemas/TagInput'
          type: array
      required:
        - id
        - question
        - answer
        - expirationStatus
        - ownerAssignment
        - expirationDate
        - lastUpdated
        - lastVerified
        - tags
      type: object
      additionalProperties: false
    AnswerLibraryActorAssignmentInput:
      properties:
        type:
          type: string
          enum:
            - User
          nullable: false
          description: The type of actor. Currently only "User" is supported.
          example: User
        id:
          type: string
          description: The unique identifier of the user or team.
          example: 507f1f77bcf86cd799439041
      required:
        - type
        - id
      type: object
      additionalProperties: false
    TagInput:
      properties:
        categoryId:
          type: string
        tagId:
          type: string
      required:
        - categoryId
        - tagId
      type: object
      additionalProperties: false
    AnswerLibraryActorAssignment:
      properties:
        type:
          type: string
          enum:
            - User
            - Team
        id:
          type: string
        displayName:
          type: string
          nullable: true
      required:
        - type
        - id
        - displayName
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````