Skip to content
Documentation menu
docs / api / put-places
Places

PUT/places

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused.
Price1 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

bash
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

FieldTypeRequiredDescription
placesPlace[]yesThe 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

json
{
  "places": [
    {
      "id": "string",
      "lat": 0,
      "lon": 0,
      "name": "string"
    }
  ]
}

Responses

200Dataset stored and indexed. ignored_fields names any field in the upload that is not a place field and so was not stored
FieldTypeRequiredDescription
countintegeryesNumber of places stored.
ignored_fieldsstring[]noField 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_atstringyesRFC 3339 timestamp of this upload.

Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "count": 0,
  "updated_at": "string"
}
400Malformed request body

application/problem+json · Problem

401Missing or invalid API key. Also: No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

404Customer places not configured on this gateway

application/problem+json · Problem

413More than the per-key place cap. Also: The request declares a body larger than 1048576 bytes (plain text, not problem+json)

application/problem+json

422One or more places failed validation; the body's problems list names each offender

application/problem+json · Problem

429Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (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