---
title: "Update which questionnaires are enabled for a relationship."
method: PUT
path: "/api/v1/relationships/{id}/questionnaires"
tags: ["client-api-questionnaire-rest-resource"]
---

# Update which questionnaires are enabled for a relationship.

`PUT /api/v1/relationships/{id}/questionnaires`

## Request

- Base URL: `https://app.visotrust.com`
- URL: `https://app.visotrust.com/api/v1/relationships/{id}/questionnaires`
- Auth: none declared
- TypeScript: <https://skmtc.dev/visotrust/apis/viso-trust-api-documentation/docs/api/v1/relationships/:id/questionnaires/put.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `id` integer, required

## Request body

- RelationshipQuestionnairesUpdateInput: 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.
  - `enabledQuestionnaireIds` string[], required: 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.

## Response `200`

OK

- RelationshipQuestionnaireView[]
  - `id` string, uuid
  - `name` string
  - `enabled` boolean: 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` boolean: 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` string, date-time

---

[API](https://skmtc.dev/visotrust/apis/viso-trust-api-documentation.md) - [All operations](https://skmtc.dev/visotrust/apis/viso-trust-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/visotrust/apis/viso-trust-api-documentation/revisions/98c8d5d102c9?raw)
