---
title: "Update location"
method: PATCH
path: "/v1/navigation/{dongleId}/locations"
tags: ["navigation"]
---

# Update location

`PATCH /v1/navigation/{dongleId}/locations`

## Request

- Base URL: `https://api.comma.ai`
- URL: `https://api.comma.ai/v1/navigation/{dongleId}/locations`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- object
  - `id` number, required: Identifier for a saved location
  - `dongle_id` string, required: A unique 16-character hexadecimal string. Can represent a device or a user.
  - `save_type` 'favorite' | 'recent', required: Navigation location type
  - `label` string, nullable: Optional label for locations with type "favorite"
  - `modified` string, required: When this saved location was last modified
  - `place_name` string, required: Short name of destination
  - `place_details` string, required: Address details of destination. Should not include short name.
  - `latitude` number, required: Latitude, decimal degrees
  - `longitude` number, required: Longitude, decimal degrees

## Response `200`

Operation successful

- object
  - `success` true, required

## Changes

- **2022-12-03** `d13c9189b880`: 1 info
  - the request optional property `allOf[subschema #2]/id` became not read-only
- **2022-11-27** `5b1478ce801f`: 1 info
  - api tag `navigation` added
- **2022-11-27** `04af598547de`: 2 info
  - the endpoint scheme security `AuthDevice` was added to the API
  - the endpoint scheme security `AuthUser` was added to the API

[Operation history](https://skmtc.dev/comma/apis/comma-api/changes/v1/navigation/:dongleId/locations/patch.md)

---

[API](https://skmtc.dev/comma/apis/comma-api.md) - [All operations](https://skmtc.dev/comma/apis/comma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/comma/apis/comma-api/revisions/24f7dbc922ad?raw)
