Edit Question
edit question
Authorizations
AuthorizationstringRequired
Query parameters
formIdstringOptional
id of form
questionIdintegerOptional
id of question
Body
audiostringOptional
audio url to embed in question
defaultValuestringOptional
default value for answers
filestringOptional
document url to embed in question (e.g. pdf)
imagestringOptional
image url to embed in question
questionstringOptional
question text
fileExtensionstringOptional
accepted file extension for file type question, separate with comma (e.g. jpg,jpeg,png)
requiredbooleanOptional
indicates that question must be answered or not
timerintegerOptional
timer to answer question in minute
typestring · enumOptionalPossible values:
question type
videostringOptional
video url to embed in question
Responses
200
Response
application/json
post
/v1/form/question/editPOST /v1/form/question/edit HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 248
{
"audio": "text",
"choices": [
{
"image": "text",
"value": "text",
"correct": true
}
],
"defaultValue": "text",
"file": "text",
"image": "text",
"question": "text",
"category": {
"id": 1
},
"fileExtension": "text",
"required": true,
"timer": 1,
"type": "short_text",
"video": "text"
}200
Response
{
"data": {
"kind": "form",
"totalQuestions": 1,
"updated_at": "text",
"created_at": "text",
"questions": [
{
"defaultValue": "text",
"file": "text",
"type": "short_text",
"audio": "text",
"id": "text",
"image": "text",
"timer": 1,
"video": "text",
"category": {
"uuid": "text",
"created_at": "text",
"id": 1,
"name": "text",
"score": 1,
"updated_at": "text"
},
"choices": [
{
"correct": true,
"id": "text",
"image": "text",
"value": "text"
}
],
"fileExtension": "text",
"question": "text",
"required": true
}
],
"randomize": {
"<category-id>": 1
},
"timer": 1,
"title": "text",
"userId": 1,
"formType": "basic",
"description": "text",
"id": "text",
"release": true,
"cover": "text"
},
"message": "success",
"status": true
}Last updated