> For the complete documentation index, see [llms.txt](https://developers.gleantap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gleantap.com/update-data/create-or-update-location.md).

# Create or Update Location

## Create or update location

> Create a new location or update existing location details

```json
{"openapi":"3.0.0","info":{"title":"Gleantap External API","version":"1.0.0"},"tags":[{"name":"Locations","description":"Locations"}],"servers":[{"url":"https://api.gleantap.com","description":"Production server"}],"paths":{"/v2/ExternalApi/newLocation":{"post":{"tags":["Locations"],"summary":"Create or update location","description":"Create a new location or update existing location details","operationId":"a7ec5af15b32eb886dbcbddf1f6f42ef","parameters":[{"name":"X-API-KEY","in":"header","description":"Your API key","required":true,"schema":{"type":"string"}},{"name":"X-SECRET-KEY","in":"header","description":"Your Secret key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["app_id","id","name"],"properties":{"app_id":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"timezone":{"type":"string"},"hours":{"type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"Location created/updated successfully","content":{"application/json":{"schema":{"properties":{"result":{"type":"string"}},"type":"object"}}}},"400":{"description":"Invalid request"}}}}}}
```
