Documentation menu
PUT/places
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused. |
|---|---|
| Price | 1 call per request. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
Replace the caller's place dataset and rebuild its search index.
An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per request.
Call it
curl -fsS -X PUT "https://api.mapmap.ai/places" \
-H "Authorization: Bearer $MAPMAP_KEY" \
-H "Content-Type: application/json" \
-d '{"places":[{"id":"string","lat":0,"lon":0,"name":"string"}]}'Request body
application/json · PutPlacesRequest
| Field | Type | Required | Description |
|---|---|---|---|
| places | Place[] | yes | The full dataset; replaces whatever was stored before. |
Example: A request assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"places": [
{
"id": "string",
"lat": 0,
"lon": 0,
"name": "string"
}
]
}Responses
ignored_fields names any field in the upload that is not a place field and so was not stored| Field | Type | Required | Description |
|---|---|---|---|
| count | integer | yes | Number of places stored. |
| ignored_fields | string[] | no | Field names the upload carried that are not place fields, so were
NOT stored: places[].category when a place said category where
the field is categories. Sorted, each name once, at most 50.
Absent when every field was recognised. Free-form data belongs in
properties. |
| updated_at | string | yes | RFC 3339 timestamp of this upload. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"count": 0,
"updated_at": "string"
}application/problem+json · Problem
unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
application/problem+json · Problem
application/problem+json
problems list names each offenderapplication/problem+json · Problem
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Places
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId put_places