Request urls API | Method POST

[<https://content.view-travel.com/>](<https://content.view-travel.com/v3/api/views/>)v3/api/views/

List of parameters to create the trip

PARAMETERS MANDATORY TYPE VALUES THAT CAN BE TAKEN
title YES string Title with which you want to present the view
subtitle NO string Subtitle with which you want to present the view
type_view YES string The type_view can take values of destination, cruise or cruise_stay
description NO string Description with which you want to present the view
is_videoview Only when a view with background videos is generated boolean true or false
is_photoview Only when a view with background photos is generated boolean true or false
thematic Only when a view with background theme is generated integer Thematic id (see "List of thematic ids" )
currency Only when no price package is used integer ids currency

Include in headers

headers: {
		'Content-Type': 'application/json',
    'Accept': 'application/json',
    'Authorization': Bearer YOUR_TOKEN_REFRESH' ,
}

Parameters to send the request

{
    "title": "Viewtravel V3",
    "subtitle": "Sub title of Viewtravel",
    "description": "Description your trip",
    "type_view": "destination",
    "is_videoview": true,
    "thematic": 430
}

Response to the request

{
    "code": "4855E0995075",
    "title": "Viewtravel V3",
    "subtitle": "Sub title of Viewtravel",
    "type_view": "destination",
    "thematic": {
        "id": 430,
        "name": "Bali Spa",
        "group": {
            "id": 10,
            "name": "Relax"
        }
    },
    "description": "Description your trip",
    "is_photoview": false,
    "is_videoview": true,
    "agency": {
        "id": 8,
        "name": "Viewtravel Custom"
    },
    "user": {
        "id": 615,
        "first_name": "Lenin",
        "last_name": "Espinoza Cueva",
        "email": "[email protected]",
        "username": "leninesc"
    },
    "currency": null,
    "reservation_number": null,
    "ticket_issued": null,
    "theme": {
        "id": 1,
        "name": "Viewtravel Version 3"
    },
    "is_active": true,
    "edit_url": "<https://view-travel.com/allinone/edit/4855E0995075>",
    "url_mytrip": "<https://view-travel.com/mytrip/4855E0995075>"
}