TravelyfeHelp
EntwicklerReferenceImages

Upload An Image

POST
/v1/itineraries/{id}/images

Stores a JPEG for the itinerary's cover, or for a day with day, and returns its address. The itinerary is not changed: save the address yourself.

Only available to the Travelyfe apps. Tokens issued to other apps receive forbidden.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid

Query Parameters

day?string

The day id, for a day image.

Request Body

application/octet-stream

A JPEG, sent with Content-Type: image/jpeg.

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/itineraries/497f6eca-6276-4993-bfeb-53cbbbba6f08/images" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "url": "http://example.com"}