Updates the answer of a question in an assessment. Works like the portal question PATCH, limited to ShortAnswer and Textarea questions.

Send Content-Type: application/json-patch+json and a JSON Patch array with exactly one operation on
/value:
```[{ "op": "replace", "path": "/value", "value": "OT-12345" }]````replacewithnullor"", or { "op": "remove", "path": "/value" }, clears the answer. Get the page, section and question ids from GET /api/public-v1/assessment/{id}; to find a question by its template question id, look it up there and use its id`.
While a user has the assessment open for editing (locked), the update is refused with 403; retry later.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

The assessment id.

int32
required

The id of the section that holds the question.

int32
required

The question id (not the template question id).

Body Params

A JSON Patch array with one replace or remove operation on /value.

string
enum
required
Allowed:
string
enum
required
Allowed:
string | null

The new answer. Omit for remove; null or "" clears the answer.

Responses

403

The assessment is locked by someone else; retry later

415

Content-Type is not application/json-patch+json

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json