Skip to main content
PATCH
/
projects
/
{project_id}
/
locations
/
{location_id}
Update a location
curl --request PATCH \
  --url https://app.gomangrove.com/api/v1/projects/{project_id}/locations/{location_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "lat": "<string>",
  "long": "<string>"
}
'
{
  "id": "loc_4EASWoe5STyK7oWQ",
  "lat": "49.25265",
  "long": "-123.23356",
  "name": "Secondary Facility",
  "created_at": "2024-12-20T02:49:37.569Z",
  "updated_at": "2024-12-20T02:51:45.291Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required
location_id
string
required

Body

application/json
name
string

Name of the location

lat
string

Latitude of the location

long
string

Longitude of the location

Response

200

id
string
Example:

"loc_4EASWoe5STyK7oWQ"

lat
string
Example:

"49.25265"

long
string
Example:

"-123.23356"

name
string
Example:

"Secondary Facility"

created_at
string
Example:

"2024-12-20T02:49:37.569Z"

updated_at
string
Example:

"2024-12-20T02:51:45.291Z"