Skip to main content
PUT
/
api
/
workspaces
/
{id}
/
questions
/
{question_id}
Update Question
curl --request PUT \
  --url http://localhost:8080/api/workspaces/{id}/questions/{question_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "answer": "<string>",
  "status": "<string>"
}
'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "task_id": "<string>",
  "task_title": "<string>",
  "content": "<string>",
  "context": "<string>",
  "options": [
    "<string>"
  ],
  "answer": "<string>",
  "status": "<string>",
  "priority": 123,
  "created_at": "<string>",
  "answered_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
question_id
string
required

Body

application/json
answer
string | null
status
string | null

Response

Successful Response

id
string
required
workspace_id
string
required
task_id
string
required
task_title
string | null
required
content
string
required
context
string | null
required
options
string[] | null
required
Maximum array length: 4
answer
string | null
required
status
string
required
priority
integer
required
created_at
string
required
answered_at
string | null
required