> ## Documentation Index
> Fetch the complete documentation index at: https://developer.qminder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit a location

> Updates an existing location. Only include the fields you want to change. Omitted fields remain unchanged.



## OpenAPI

````yaml /api-reference/openapi.json patch /locations/{locationId}
openapi: 3.1.0
info:
  title: Qminder API
  version: '1.0'
  description: >-
    The Qminder API allows you to integrate queue management into your own
    applications.
servers:
  - url: https://api.qminder.com
security:
  - sec0: []
tags:
  - name: Locations
    description: Manage physical service locations
  - name: Lines
    description: Manage virtual queues within locations
  - name: Input Fields
    description: Manage custom data fields for locations
  - name: Tickets
    description: Manage visitor queue entries
  - name: Appointments
    description: Manage scheduled appointments
  - name: Users
    description: Manage user accounts and permissions
  - name: Webhooks
    description: Manage webhook subscriptions
paths:
  /locations/{locationId}:
    patch:
      tags:
        - Locations
      summary: Edit a location
      description: >-
        Updates an existing location. Only include the fields you want to
        change. Omitted fields remain unchanged.
      operationId: edit-location
      parameters:
        - name: locationId
          in: path
          description: ID of the location to update.
          required: true
          schema:
            type: integer
            format: int64
            default: 12345
        - name: X-Qminder-API-Version
          in: header
          description: API version. Must be set to `2020-09-01`.
          required: true
          schema:
            type: string
            enum:
              - '2020-09-01'
            default: '2020-09-01'
      requestBody:
        description: >-
          Location properties to update. All fields are optional — only include
          the fields you want to change.
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 30
                  description: >-
                    Location name (max 30 characters). Must not be blank if
                    provided.
                latitude:
                  type: number
                  minimum: -90
                  maximum: 90
                  description: Geographical latitude (-90 to 90).
                longitude:
                  type: number
                  minimum: -180
                  maximum: 180
                  description: Geographical longitude (-180 to 180).
            example:
              name: SF City Hall
              latitude: 37.7792792
              longitude: -122.4214304
      responses:
        '200':
          description: Location updated successfully
        '400':
          description: Validation error - invalid input data
          content:
            application/json:
              examples:
                TimezoneConflict:
                  summary: Coordinates would change the location's timezone
                  value:
                    code: invalid_location_timezone
                    message: >-
                      The provided coordinates would change the location's
                      timezone, which is not allowed
        '404':
          description: Location not found
          content:
            application/json:
              example:
                code: resource_missing
                message: 'Locations with following ids were not found: [12345]'
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: X-Qminder-REST-API-Key
      x-default: yourbusinessapikey

````