Get a file upload form
POST
https://api.nicer.travel/assets/create-put-url
Returns a form to upload one file of the given asset type and media type straight to storage: the presigned POST (its url and the fields to send with the file, valid for an hour), the key the file will have and, for a public type, the URL it will be served at; the metadata sent comes back in the answer too. Itinerary types need a tripItineraryId the caller may edit. Any signed-in person may call it. Errors: 400 ERROR_ASSET_INVALID_TYPE for an asset type that cannot be uploaded this way; 400 ERROR_ASSET_INVALID_MEDIA_TYPE for a media type the asset type does not take.
Authorization
Returns
200
OK
JSON