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

# Update which questionnaires are enabled for a relationship.

> Replaces the relationship's enabled-questionnaire list with the provided ids. Any active organization questionnaire not included in `enabledQuestionnaireIds` is disabled for the relationship.



## OpenAPI

````yaml https://app.visotrust.com/v1/api-docs put /api/v1/relationships/{id}/questionnaires
openapi: 3.1.0
info:
  title: VISO TRUST API Documentation
  description: VISO TRUST
  version: v1.0
servers:
  - url: https://app.visotrust.com
    description: Generated server url
security: []
externalDocs:
  description: VISO TRUST Support Documentation
  url: https://docs.visotrust.com/
paths:
  /api/v1/relationships/{id}/questionnaires:
    put:
      tags:
        - client-api-questionnaire-rest-resource
      summary: Update which questionnaires are enabled for a relationship.
      description: >-
        Replaces the relationship's enabled-questionnaire list with the provided
        ids. Any active organization questionnaire not included in
        `enabledQuestionnaireIds` is disabled for the relationship.
      operationId: updateQuestionnairesForRelationship
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelationshipQuestionnairesUpdateInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RelationshipQuestionnaireView'
components:
  schemas:
    RelationshipQuestionnairesUpdateInput:
      type: object
      default: null
      description: >-
        Replaces the relationship's enabled-questionnaire list. Every active
        organization-level questionnaire not included in
        `enabledQuestionnaireIds` is marked disabled for the relationship,
        overriding the organization-level default.
      properties:
        enabledQuestionnaireIds:
          type: array
          default: ''
          description: >-
            Ids of questionnaires to enable for this relationship. Each id must
            reference an active organization-level questionnaire returned by
            `GET /questionnaires` or `GET /relationships/{id}/questionnaires`;
            unknown ids return 404. Pass an empty set to disable all
            questionnaires for the relationship.
          items:
            type: string
            format: uuid
          uniqueItems: true
      required:
        - enabledQuestionnaireIds
    RelationshipQuestionnaireView:
      type: object
      default: null
      description: >-
        A questionnaire available to your organization, with the effective
        enabled state for a specific relationship.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        enabled:
          type: boolean
          default: false
          description: >-
            True if this questionnaire will be answered when an assessment is
            started for this relationship. Reflects relationship-level
            overrides, falling back to the organization-level enabled flag when
            no override exists.
        aiOnly:
          type: boolean
          default: false
          description: >-
            If true, the questionnaire is answered by AI by default and is not
            sent to the vendor for manual response when assessing. It can still
            be explicitly selected for manual response by passing its id in the
            `questionnaires` field on the Start Assessment endpoint.
        createdDate:
          type: string
          format: date-time

````