---
title: "update question bank"
method: PUT
path: "/core/api/v2/assessment/question-bank/{id}"
tags: ["question-bank-controller"]
---

# update question bank

`PUT /core/api/v2/assessment/question-bank/{id}`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v2/assessment/question-bank/{id}`
- Auth: none declared

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- QuestionBankDto
  - `addAnswerOption` 'TEXT_ENTRY' | 'IMAGE_ICON'
  - `answer` object
  - `answerExplanation` string
  - `answerType` 'SINGLE_CHOICE' | 'MULTI_CHOICE' | 'SHORT_ANSWER'
  - `assessmentId` integer
  - `correctAnswer` object
  - `correctAnswerOption` string[]
  - `createdTime` integer
  - `description` string
  - `domainId` integer
  - `id` integer
  - `isAssociatedWithAssessment` boolean
  - `isMandatory` boolean
  - `metaData` object
  - `question` string
  - `visualization` 'NO_IMAGE' | 'IMAGE_ABOVE' | 'IMAGE_BELOW' | 'VIDEO' | 'AUDIO'

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/freshlearn/apis/freshlearn-api.md) · [All operations](https://skmtc.dev/freshlearn/apis/freshlearn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshlearn/apis/freshlearn-api/revisions/8a82ee14b586?raw)
