- I'm Guide - API Version Control
- I'm Guide - Custom Error Exception
- Planner
- Route
- Place
- Custom Trip
- Delete Custom Trip V1
- Create trip with ai prompt
- Optimize trip with ai prompt
- Create Custom trip V1
- Edit Custom Trip V1
- VIew Detail User Custom Trip V1
- VIew List of User Custom Trip V1
- Create trip with custom presetdata
- Create trip with popular presetdata
- Review Trip V1
- Get Unavaliable Date List V1
- Check Unavaliable Date V1
- Create trip with ai prompt V2
- VIew List of User Active Trip V1
- Active Trip
- Config
- Activities
- Communities
- Feedback
- Internal Endpoint
- Line
- Get List Of Linked Trip In Group V1
- Get Detail Of Linked Trip In Group V1
- Get Day Detail Of Linked Trip In Group V1
- Generate Link Code V1
- Verify Link Code V1
- Unlink From LIne V1
- Unlink From App V1
- Get Current Trip In Group V1
- Get Current Trip By Day In Group V1
- Init Line
- Update Line Line Notification
- Update General Line Notification
- Get Noti Trip Line
- LINE GET TODAY TRIP BY DAY
- LINE GET TODAY TRIP
- LINE GET TODAY TRIP
- Get Noti General Line
- Core
- AI
- Storage
- Internal
- TEST TATGET
Get Preference Question v1
Developing
GET
/trips/v1/activities/preferences/question
Last modified:2025-02-16 08:39:37
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/trips/v1/activities/preferences/question'
Responses
🟢200OK
application/json
Body
status
string
required
message
string
required
Example
{
"status": "success",
"data": {
"Q1": {
"question_en": "What is your favorite color?",
"question_th": "สีที่คุณชอบคือสีอะไร?",
"description_en": "Please select your favorite color.",
"description_th": "กรุณาเลือกสีที่คุณชอบ",
"option": {
"isRequired": true,
"isMultiple": false,
"includeImage": false,
"isOpenEndQuestion": false
},
"answer": [
{
"answer_code": "Q001A001",
"isShow": true,
"answer_text_en": "Red",
"answer_text_th": "สีแดง",
"answer_image": ""
},
{
"answer_code": "Q001A002",
"isShow": true,
"answer_text_en": "Blue",
"answer_text_th": "สีน้ำเงิน",
"answer_image": ""
},
{
"answer_code": "Q001A003",
"isShow": true,
"answer_text_en": "Green",
"answer_text_th": "สีเขียว",
"answer_image": ""
},
{
"answer_code": "Q001A004",
"isShow": true,
"answer_text_en": "Yellow",
"answer_text_th": "สีเหลือง",
"answer_image": ""
}
]
},
"Q2": {
"question_en": "What is your favorite animal?",
"question_th": "สัตว์ที่คุณชอบคือสัตว์อะไร?",
"description_en": "Please select your favorite animal.",
"description_th": "กรุณาเลือกสัตว์ที่คุณชอบ",
"option": {
"isRequired": true,
"isMultiple": false,
"includeImage": true,
"isOpenEndQuestion": false
},
"answer": [
{
"answer_code": "Q002A001",
"isShow": true,
"answer_text_en": "Dog",
"answer_text_th": "หมา",
"answer_image": "dog.jpg"
},
{
"answer_code": "Q002A002",
"isShow": true,
"answer_text_en": "Cat",
"answer_text_th": "แมว",
"answer_image": "cat.jpg"
},
{
"answer_code": "Q002A003",
"isShow": true,
"answer_text_en": "Rabbit",
"answer_text_th": "กระต่าย",
"answer_image": "rabbit.jpg"
},
{
"answer_code": "Q002A004",
"isShow": true,
"answer_text_en": "Bird",
"answer_text_th": "นก",
"answer_image": "bird.jpg"
}
]
},
"Q3": {
"question_en": "What is your favorite fruit?",
"question_th": "ผลไม้ที่คุณชอบคือผลไม้อะไร?",
"description_en": "Please select your favorite fruit.",
"description_th": "กรุณาเลือกผลไม้ที่คุณชอบ",
"option": {
"isRequired": true,
"isMultiple": true,
"includeImage": true,
"isOpenEndQuestion": false
},
"answer": [
{
"answer_code": "Q003A001",
"isShow": true,
"answer_text_en": "Apple",
"answer_text_th": "แอปเปิ้ล",
"answer_image": "apple.jpg"
},
{
"answer_code": "Q003A002",
"isShow": true,
"answer_text_en": "Banana",
"answer_text_th": "กล้วย",
"answer_image": "banana.jpg"
},
{
"answer_code": "Q003A003",
"isShow": true,
"answer_text_en": "Orange",
"answer_text_th": "ส้ม",
"answer_image": "orange.jpg"
},
{
"answer_code": "Q003A004",
"isShow": true,
"answer_text_en": "Grape",
"answer_text_th": "องุ่น",
"answer_image": "grape.jpg"
}
]
},
"Q4": {
"question_en": "What is your favorite sport?",
"question_th": "กีฬาที่คุณชอบคือกีฬาอะไร?",
"description_en": "Please select your favorite sport.",
"description_th": "กรุณาเลือกกีฬาที่คุณชอบ",
"option": {
"isRequired": true,
"isMultiple": true,
"includeImage": true,
"isOpenEndQuestion": false
},
"answer": [
{
"answer_code": "Q004A001",
"isShow": true,
"answer_text_en": "Football",
"answer_text_th": "ฟุตบอล",
"answer_image": "football.jpg"
},
{
"answer_code": "Q004A002",
"isShow": true,
"answer_text_en": "Basketball",
"answer_text_th": "บาสเกตบอล",
"answer_image": "basketball.jpg"
},
{
"answer_code": "Q004A003",
"isShow": true,
"answer_text_en": "Badminton",
"answer_text_th": "แบดมินตัน",
"answer_image": "badminton.jpg"
},
{
"answer_code": "Q004A004",
"isShow": true,
"answer_text_en": "Swimming",
"answer_text_th": "ว่ายน้ำ",
"answer_image": "swimming.jpg"
}
]
},
"Q5": {
"question_en": "What is your favorite food?",
"question_th": "อาหารที่คุณชอบคืออาหารอะไร?",
"description_en": "Please select your favorite food.",
"description_th": "กรุณาเลือกอาหารที่คุณชอบ",
"option": {
"isRequired": true,
"isMultiple": true,
"includeImage": true,
"isOpenEndQuestion": false
},
"answer": [
{
"answer_code": "Q005A001",
"isShow": true,
"answer_text_en": "Pizza",
"answer_text_th": "พิซซ่า",
"answer_image": "pizza.jpg"
},
{
"answer_code": "Q005A002",
"isShow": true,
"answer_text_en": "Hamburger",
"answer_text_th": "เบอร์เกอร์",
"answer_image": "hamburger.jpg"
},
{
"answer_code": "Q005A003",
"isShow": true,
"answer_text_en": "Sushi",
"answer_text_th": "ซูชิ",
"answer_image": "sushi.jpg"
},
{
"answer_code": "Q005A004",
"isShow": true,
"answer_text_en": "Steak",
"answer_text_th": "สเต็ก",
"answer_image": "steak.jpg"
}
]
}
}
}