Request urls API | Method POST

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

There are a variety of transport types. In this example, we'll take “files”. List of parameters for creating the transports. The files transport type

PARAMETERS MANDATORY TYPE VALUES THAT CAN BE TAKEN
my_view YES string view code to which you want to add transports
transport_type YES string Transport type code “files” see list of transport type codes
dnd_order NO integer To order transports

Include in headers

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

Parameters to send the request and perform a post method

{
    "my_view": "TXnmRVrt",
    "transport_type":"files"
}

Response to the request

{
    "id": 3811,
    "package_code": "ONE",
    "my_view": {
        "code": "TXnmRVrt",
        "title": "Un view completo con fechas",
        .
        .
        .
        "is_active": true,
        "is_new": true,
        "edit_url": "<https://view-travel.com/allinone/edit/TXnmRVrt>",
        "url_mytrip": "<https://view-travel.com/mytrip/TXnmRVrt>"
    },
    "transport_type": {
        "id": 24,
        "code": "files",
        "name": "Archivos",
        .
        .
        .
    },
    "order": 1,
    "dnd_order": 1,
    "is_active": true,
    "slug": "none",
    "user": {
        "id": 615,
        "first_name": "Lenin",
        "last_name": "Espinoza Cueva",
        "email": "[email protected]",
        "username": "leninesc"
    }
}