Skip to content

Update Specific Travel

Yongsung Heo edited this page Apr 17, 2019 · 1 revision

Update Specific Travel

  • URL : /api/v1/my/travels/travelId
  • Method : PUT

Request Header

Follows the common header rule.

Request Body Parameters

Name Type Description
startDate datetime required.
endDate datetime required.
travelType string required.
entireCountry array .
title string .
thema array .
backgroundImageName string .
backgroundImageUrl string .
share boolean .
isDelete boolean .

Response Body

Name Type Description
id int essential. Travel Id.
startDate datetime essential.
endDate string essential.
travelType string essential.
entireCountry array essential.
title string essential.
thema array essential.
backgroundImageName string essential.
backgroundImageUrl string essential.
share boolean essential.
isDelete boolean essential.

Examples

PUT /api/v1/my/travels/travelId

{
    "travel": {
        "id": 1,
        "startDate": "Tue, 01 Jan 2019 00:00:00 GMT",
        "endDate": "",
        "travelType": "foreign",
        "entireCountry": ["korea"],
        "title": "This is my first travel.",
        "thema": ["party"],
        "backgroundImageName": "first.png",
        "backgroundImageUrl": "http://localhost:1234/first.png",
        "share": false,
        "isDelete": false   
    }
}

Clone this wiki locally