Attach an ambassador address geocode (manager)
Path parameters
-
The ambassador id
PATCH /manager/ambassadors/{id}/address-geocode
curl \
-X PATCH https://domain.tld/api/v2/manager/ambassadors/{id}/address-geocode \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"latitude":"48.856614","longitude":"2.3522219","city":"Paris","country":"France","postcode":"75001","street":"Rue de Rivoli","street2":"Place de la Concorde"}'
Request examples
{
"latitude": "48.856614",
"longitude": "2.3522219",
"city": "Paris",
"country": "France",
"postcode": "75001",
"street": "Rue de Rivoli",
"street2": "Place de la Concorde"
}
Response examples (200)
{
"message": "Address geocode attached successfully"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}