- 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
Add and Update Preference v1
Developing
POST
/trips/v1/activities/preferences
Last modified:2025-02-16 08:37:16
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
preferences
array [object {2}]
required
question
string
required
answers
array[string]
required
Example
{
"preferences": [
{
"question": "Q1",
"answers": [
"Q001A001",
"Q001A002"
]
},
{
"question": "Q2",
"answers": [
"Q002A001",
"Q002A002"
]
},
{
"question": "Q3",
"answers": [
"Q003A001"
]
},
{
"question": "Q4",
"answers": [
"Q004A001",
"Q004A002"
]
},
{
"question": "Q5",
"answers": [
"Q005A001",
"Q005A002"
]
}
]
}
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 POST '/trips/v1/activities/preferences' \
--header 'Content-Type: application/json' \
--data-raw '{
"preferences": [
{
"question": "Q1",
"answers": [
"Q001A001",
"Q001A002"
]
},
{
"question": "Q2",
"answers": [
"Q002A001",
"Q002A002"
]
},
{
"question": "Q3",
"answers": [
"Q003A001"
]
},
{
"question": "Q4",
"answers": [
"Q004A001",
"Q004A002"
]
},
{
"question": "Q5",
"answers": [
"Q005A001",
"Q005A002"
]
}
]
}'
Responses
🟢201Created
application/json
Body
status
string
required
message
string
required
data
object
required
preference
object
required
Example
{
"status": "success",
"message": "Preference saved successfully"
}
🟠400Bad Request
🔴503Service Unavailable
🟢201Created