admin

Sets a key's probe contribution opt-in flag: the per-key consent gate on `POST /v1/probe`. A key contributes aggregate road-segment statistics only while this is `true`; it is `false` for every key by default. Idempotent.

put/admin/keys/{id}/opt-in

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/admin/keys/{id}/opt-in
  • Auth: HTTP bearer

Path parameters

idstring required

Key id

Request body

opted_inboolean required

true to opt the key in to aggregate probe contribution, false to opt it back out. Off by default for every key.

Response

Flag set

key_idstring required

Key whose flag was set.

probe_opt_inboolean required

The flag's value after the change.

Changes

No recorded changes to this operation across all 1 revision of this API.