Skip to content
Navigation

Delete a gallery photo

DELETE
https://api.nicer.travel/user-places/{id}

Deletes one of the caller's own gallery photos for good, with its image, and answers the place as it was. Only the photo's owner may call it: the place is looked up under the caller.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • id
    string
    required

Returns

200

OK

JSON
  • createdBy
    string
    required
  • hasError
    boolean
    required

    Whether processing the location of the photo failed.

  • imageUri
    string
    required

    The photo: its storage key, which the gallery listing answers as an absolute URL.

  • lastModifiedBy
    string
    required
  • id
    string
    required
  • userId
    string
    required

    The person whose gallery holds the photo.

  • createdAt
    string
    required
  • updatedAt
    string
    required
  • type
    string
    required
  • capturedAt
    optional

    When the photo was taken, from the upload's metadata; null when it carried none.

    Any of the following:

    • string
    • null
  • city
    optional

    Any of the following:

    • string
    • null
  • country
    optional

    Any of the following:

    • string
    • null
  • countryCode
    optional

    Any of the following:

    • string
    • null
  • description
    optional

    A brief description of the place or of the visit.

    Any of the following:

    • string
    • null
  • errorCode
    optional

    Set when processing the location failed.

    Any of the following:

    • string
    • null
  • errorMessage
    optional

    Any of the following:

    • string
    • null
  • fileName
    optional

    The name of the uploaded file.

    Any of the following:

    • string
    • null
  • fullAddress
    optional

    Any of the following:

    • string
    • null
  • latitude
    optional

    Any of the following:

    • number
    • null
  • locationCountry
    optional

    The photo's country, as the place lookup found it.

    Any of the following:

    • object
      • address
        string
        required

        The short address; empty when the place has none.

      • country
        string
        required

        The country's name; empty when the place has none.

      • fullAddress
        string
        required

        The full address; empty when the place has none.

      • amenities
        optional
        array of
        string
      • city
        optional
        string
      • countryCode
        optional
        string
      • description
        optional
        string
      • latitude
        optional
        number
      • longitude
        optional
        number
      • name
        optional
        string
      • photos
        optional
        array of
        object

        Up to four photos when they were asked for; empty otherwise.

        • name
          string
          required
        • url
          string
          required
        • key
          optional
          string
        • source
          optional
          string
      • placeId
        optional
        string
      • placeTypes
        optional
        array of
        string

        Every type the directory gives the place, as it spells them.

      • primaryType
        optional
        string
        ·
        one of 57 values

        The place's most relevant type.

        Allowed values: lodging, restaurant, tourist_attraction, shopping_mall, airport, hospital, school, gas_station, bank, atm, pharmacy, store, museum, park, gym, movie_theater, night_club, bar, cafe, church, mosque, synagogue, hindu_temple, library, university, subway_station, train_station, bus_station, taxi_stand, car_rental, beauty_salon, spa, doctor, dentist, veterinary_care, zoo, amusement_park, casino, bowling_alley, stadium, post_office, police, fire_station, city_hall, courthouse, embassy, locality, administrative_area_level_1, administrative_area_level_2, country, city, region, state, neighborhood, sublocality, establishment, point_of_interest
      • source
        optional
        string

        The directory the place comes from.

      • state
        optional
        string
      • zipCode
        optional
        string
    • null
  • longitude
    optional

    Any of the following:

    • number
    • null
  • state
    optional

    Any of the following:

    • string
    • null
  • zipCode
    optional

    Any of the following:

    • string
    • null

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close