I'm Guide API Documentation
  1. Activities
I'm Guide API Documentation
  • I'm Guide - API Version Control
  • I'm Guide - Custom Error Exception
  • Planner
    • Route
      • Popular Route V1
      • Popular Route [V3] Combind
      • Popular Route AI [V2]
      • Route Detail V1
    • Place
      • Region Place V1
      • Place LIST V2 With Favorite Flag
      • Region Place V2 - include fav flag specific user
      • Place LIST V1
      • Place Detail - ATTRACTION V1
    • 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
      • Get Active Trip V1
    • Config
      • Get Province
      • Get Place-Keyword
    • Activities
      • Add Fav V1
        POST
      • Add view Details Logs v1
        POST
      • Add and Update Preference v1
        POST
      • Remove Fav V1
        DELETE
      • Clear details Logs v1
        DELETE
      • Get Fav V1
        GET
      • Get Fav By Province V1
        GET
      • Get Fav By Id V1
        GET
      • Get view details Logs v1
        GET
      • Get Preference Question v1
        GET
      • Get Preference V1
        GET
      • Get Analytics AI Data
        GET
    • Communities
      • Add to community
      • Get Communities
      • Get Web Content Communities
      • edit post in community
      • delete post in community - soft delete
    • Feedback
      • Add Feedback
      • Get Feedback Web-Admin
    • Internal Endpoint
      • sync TAT ROute Data
      • sync community orderjob
      • Get Route AI Data
      • Untitled Endpoint
      • LINE SYNC CURRENT TRIP
    • 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
    • AI Progress Notification
    • INTERNAL: getPlaceInProvince
      POST
    • UAT
      POST
  • Storage
    • File Upload
    • Get File
    • Get File List ADMIN
  • Internal
    • AI
  • TEST TAT
    GET
  1. Activities

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
Previous
Add view Details Logs v1
Next
Remove Fav V1
Built with