curl --request PATCH \
--url http://staging.qshop.ng/apiv2/{shopId}/locations/{locationId} \
--header 'Content-Type: application/json' \
--data '
{
"address": "<div>Pick up update again and againer</div>",
"geoLocation": {
"_id": "632bc09228b8f5a36267f0b0",
"addressProximity": "close",
"coordinates": {
"lat": 6.4437532,
"lng": 3.4618832
},
"fullAddress": "10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria",
"geoNames": [
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2332453,
"lat": "6.53774",
"lng": "3.3522",
"name": "Lagos",
"population": 10601345,
"toponymName": "Lagos State"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7932498,
"lat": "6.44154",
"lng": "3.55015",
"name": "Eti Osa",
"population": 0,
"toponymName": "Eti Osa"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2349522,
"lat": "6.45",
"lng": "3.46667",
"name": "Araromi",
"population": 0,
"toponymName": "Araromi"
}
],
"google": {
"address_components": [
{
"long_name": "10a",
"short_name": "10a",
"types": [
"street_number"
]
},
{
"long_name": "Yeye Olofin Street",
"short_name": "Yeye Olofin St",
"types": [
"route"
]
},
{
"long_name": "Lekki Phase I",
"short_name": "Lekki Phase I",
"types": [
"neighborhood",
"political"
]
},
{
"long_name": "Lagos",
"short_name": "Lagos",
"types": [
"locality",
"political"
]
},
{
"long_name": "Eti Osa",
"short_name": "Eti Osa",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Lagos",
"short_name": "LA",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": [
"country",
"political"
]
},
{
"long_name": "106104",
"short_name": "106104",
"types": [
"postal_code"
]
}
],
"adr_address": "<span class=\"street-address\">10a Yeye Olofin St</span>, <span class=\"extended-address\">Lekki Phase I</span> <span class=\"postal-code\">106104</span>, <span class=\"locality\">Lagos</span>, <span class=\"country-name\">Nigeria</span>",
"formatted_address": "10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria",
"geometry": {
"location": {
"lat": 6.4437532,
"lng": 3.4618832
},
"viewport": {
"east": 3.463231780291502,
"north": 6.445193930291502,
"south": 6.442495969708498,
"west": 3.460533819708499
}
},
"html_attributions": [],
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/geocode-71.png",
"icon_background_color": "#7B9EB0",
"icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/generic_pinlet",
"name": "10a Yeye Olofin St",
"place_id": "ChIJSX8u2FX0OxARCuZ_5SD4MFw",
"plus_code": {
"compound_code": "CFV6+GQ Lagos, Nigeria",
"global_code": "6FR5CFV6+GQ"
},
"reference": "ChIJSX8u2FX0OxARCuZ_5SD4MFw",
"types": [
"street_address"
],
"url": "https://maps.google.com/?q=10a+Yeye+Olofin+St,+Lekki+Phase+I+106104,+Lagos,+Nigeria&ftid=0x103bf455d82e7f49:0x5c30f820e57fe60a",
"utc_offset": 60,
"utc_offset_minutes": 60,
"vicinity": "Lagos"
},
"points": {
"_id": "632bc09228b8f5a36267f0b1",
"coordinates": [
3.4618832,
6.4437532
],
"type": "Point"
},
"zipCode": "106104"
}
}
'curl --request PATCH \
--url http://staging.qshop.ng/apiv2/{shopId}/locations/{locationId} \
--header 'Content-Type: application/json' \
--data '
{
"address": "<div>Pick up update again and againer</div>",
"geoLocation": {
"_id": "632bc09228b8f5a36267f0b0",
"addressProximity": "close",
"coordinates": {
"lat": 6.4437532,
"lng": 3.4618832
},
"fullAddress": "10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria",
"geoNames": [
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2332453,
"lat": "6.53774",
"lng": "3.3522",
"name": "Lagos",
"population": 10601345,
"toponymName": "Lagos State"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7932498,
"lat": "6.44154",
"lng": "3.55015",
"name": "Eti Osa",
"population": 0,
"toponymName": "Eti Osa"
},
{
"adminCode1": "05",
"adminCodes1": {
"ISO3166_2": "LA"
},
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2349522,
"lat": "6.45",
"lng": "3.46667",
"name": "Araromi",
"population": 0,
"toponymName": "Araromi"
}
],
"google": {
"address_components": [
{
"long_name": "10a",
"short_name": "10a",
"types": [
"street_number"
]
},
{
"long_name": "Yeye Olofin Street",
"short_name": "Yeye Olofin St",
"types": [
"route"
]
},
{
"long_name": "Lekki Phase I",
"short_name": "Lekki Phase I",
"types": [
"neighborhood",
"political"
]
},
{
"long_name": "Lagos",
"short_name": "Lagos",
"types": [
"locality",
"political"
]
},
{
"long_name": "Eti Osa",
"short_name": "Eti Osa",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Lagos",
"short_name": "LA",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": [
"country",
"political"
]
},
{
"long_name": "106104",
"short_name": "106104",
"types": [
"postal_code"
]
}
],
"adr_address": "<span class=\"street-address\">10a Yeye Olofin St</span>, <span class=\"extended-address\">Lekki Phase I</span> <span class=\"postal-code\">106104</span>, <span class=\"locality\">Lagos</span>, <span class=\"country-name\">Nigeria</span>",
"formatted_address": "10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria",
"geometry": {
"location": {
"lat": 6.4437532,
"lng": 3.4618832
},
"viewport": {
"east": 3.463231780291502,
"north": 6.445193930291502,
"south": 6.442495969708498,
"west": 3.460533819708499
}
},
"html_attributions": [],
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/geocode-71.png",
"icon_background_color": "#7B9EB0",
"icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/generic_pinlet",
"name": "10a Yeye Olofin St",
"place_id": "ChIJSX8u2FX0OxARCuZ_5SD4MFw",
"plus_code": {
"compound_code": "CFV6+GQ Lagos, Nigeria",
"global_code": "6FR5CFV6+GQ"
},
"reference": "ChIJSX8u2FX0OxARCuZ_5SD4MFw",
"types": [
"street_address"
],
"url": "https://maps.google.com/?q=10a+Yeye+Olofin+St,+Lekki+Phase+I+106104,+Lagos,+Nigeria&ftid=0x103bf455d82e7f49:0x5c30f820e57fe60a",
"utc_offset": 60,
"utc_offset_minutes": 60,
"vicinity": "Lagos"
},
"points": {
"_id": "632bc09228b8f5a36267f0b1",
"coordinates": [
3.4618832,
6.4437532
],
"type": "Point"
},
"zipCode": "106104"
}
}
'"63e113ade1b6a4c4022981dc"
"<div>Pick up update again and againer</div>"
Show child attributes
"632bc09228b8f5a36267f0b0"
"close"
"10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria"
Show child attributes
"00"
""
"NG"
"2328926"
"Nigeria"
"L"
"parks,area, ..."
"AREA"
"area"
6295630
"0"
"0"
"Earth"
6814400000
"Earth"
[
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "AREA",
"fcodeName": "area",
"geonameId": 6295630,
"lat": "0",
"lng": "0",
"name": "Earth",
"population": 6814400000,
"toponymName": "Earth"
},
{
"adminName1": "",
"fcl": "L",
"fclName": "parks,area, ...",
"fcode": "CONT",
"fcodeName": "continent",
"geonameId": 6255146,
"lat": "7.1881",
"lng": "21.09375",
"name": "Africa",
"population": 1031833000,
"toponymName": "Africa"
},
{
"adminCode1": "00",
"adminName1": "",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "PCLI",
"fcodeName": "independent political entity",
"geonameId": 2328926,
"lat": "10",
"lng": "8",
"name": "Nigeria",
"population": 195874740,
"toponymName": "Federal Republic of Nigeria"
},
{
"adminCode1": "05",
"adminCodes1": { "ISO3166_2": "LA" },
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM1",
"fcodeName": "first-order administrative division",
"geonameId": 2332453,
"lat": "6.53774",
"lng": "3.3522",
"name": "Lagos",
"population": 10601345,
"toponymName": "Lagos State"
},
{
"adminCode1": "05",
"adminCodes1": { "ISO3166_2": "LA" },
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "A",
"fclName": "country, state, region,...",
"fcode": "ADM2",
"fcodeName": "second-order administrative division",
"geonameId": 7932498,
"lat": "6.44154",
"lng": "3.55015",
"name": "Eti Osa",
"population": 0,
"toponymName": "Eti Osa"
},
{
"adminCode1": "05",
"adminCodes1": { "ISO3166_2": "LA" },
"adminName1": "Lagos",
"countryCode": "NG",
"countryId": "2328926",
"countryName": "Nigeria",
"fcl": "P",
"fclName": "city, village,...",
"fcode": "PPL",
"fcodeName": "populated place",
"geonameId": 2349522,
"lat": "6.45",
"lng": "3.46667",
"name": "Araromi",
"population": 0,
"toponymName": "Araromi"
}
]Show child attributes
[
{
"long_name": "10a",
"short_name": "10a",
"types": ["street_number"]
},
{
"long_name": "Yeye Olofin Street",
"short_name": "Yeye Olofin St",
"types": ["route"]
},
{
"long_name": "Lekki Phase I",
"short_name": "Lekki Phase I",
"types": ["neighborhood", "political"]
},
{
"long_name": "Lagos",
"short_name": "Lagos",
"types": ["locality", "political"]
},
{
"long_name": "Eti Osa",
"short_name": "Eti Osa",
"types": ["administrative_area_level_2", "political"]
},
{
"long_name": "Lagos",
"short_name": "LA",
"types": ["administrative_area_level_1", "political"]
},
{
"long_name": "Nigeria",
"short_name": "NG",
"types": ["country", "political"]
},
{
"long_name": "106104",
"short_name": "106104",
"types": ["postal_code"]
}
]"<span class=\"street-address\">10a Yeye Olofin St</span>, <span class=\"extended-address\">Lekki Phase I</span> <span class=\"postal-code\">106104</span>, <span class=\"locality\">Lagos</span>, <span class=\"country-name\">Nigeria</span>"
"10a Yeye Olofin St, Lekki Phase I 106104, Lagos, Nigeria"
Show child attributes
Show child attributes
[]"https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/geocode-71.png"
"#7B9EB0"
"https://maps.gstatic.com/mapfiles/place_api/icons/v2/generic_pinlet"
"10a Yeye Olofin St"
"ChIJSX8u2FX0OxARCuZ_5SD4MFw"
"ChIJSX8u2FX0OxARCuZ_5SD4MFw"
["street_address"]"https://maps.google.com/?q=10a+Yeye+Olofin+St,+Lekki+Phase+I+106104,+Lagos,+Nigeria&ftid=0x103bf455d82e7f49:0x5c30f820e57fe60a"
60
60
"Lagos"
"106104"
Was this page helpful?