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

# Update Location

> PUT request to update location details. The identifier for the location to be updated is included in the JSON body. This is a partial update and only those details specified in the JSON body will be updated.<br/><br/>The updated address for the location can be specified as just the longitude and latitude coordinates or an address (roadNumber, road, city, postcode, country).<br/><br/>The type of a location can be updated from a circle to a polygon or from a polygon to a circle, by specifying the the geofence for the location as either:<ul><li>radius - A geofence for the location is a circle. The radius for the circle must be between 0.001 and 1.</li><li>polygon - The geofence for the location is a polygon which is specified as an array of longitude and latitude pairs. There must be at least three longitude and latitude pairs specified. The geofence boundary is closed by automatically linking the first longitude and latitude pair to the last longitude and latitude pair specified.</li></ul>The geofence for a location can overlap the geofence for another location. The geofence for this location can overlap up to 5 locations.



## OpenAPI

````yaml https://api.connectedfleet.michelin.com/fleet-management/api-docs put /public/v1/customer/{customerId}/location
openapi: 3.0.1
info:
  title: Fleet management
  description: >-
    A comprehensive administration pack enabling full control over fleet
    structures, users, drivers, vehicles and operational data.
  contact:
    name: Masternaut
    url: https://www.masternaut.com
    email: support@masternautconnect.com
  version: 124.0.2607160821
servers:
  - url: https://api.connectedfleet.michelin.com/fleet-management
    description: Product Server
security:
  - bearerAuth: []
tags:
  - name: /driver
    description: Driver Operations
  - name: /group
    description: Group operations
  - name: /location/category
    description: Location category management operations
  - name: /location
    description: Location management operations
  - name: /role
    description: Role operations
  - name: /tokenInformation
    description: Token operations
  - name: /user
    description: User operations
  - name: /maintenance
    description: Vehicle maintenance operations
  - name: /vehicle
    description: Vehicle management operations
paths:
  /public/v1/customer/{customerId}/location:
    put:
      tags:
        - /location
      summary: Update Location
      description: >-
        PUT request to update location details. The identifier for the location
        to be updated is included in the JSON body. This is a partial update and
        only those details specified in the JSON body will be
        updated.<br/><br/>The updated address for the location can be specified
        as just the longitude and latitude coordinates or an address
        (roadNumber, road, city, postcode, country).<br/><br/>The type of a
        location can be updated from a circle to a polygon or from a polygon to
        a circle, by specifying the the geofence for the location as
        either:<ul><li>radius - A geofence for the location is a circle. The
        radius for the circle must be between 0.001 and 1.</li><li>polygon - The
        geofence for the location is a polygon which is specified as an array of
        longitude and latitude pairs. There must be at least three longitude and
        latitude pairs specified. The geofence boundary is closed by
        automatically linking the first longitude and latitude pair to the last
        longitude and latitude pair specified.</li></ul>The geofence for a
        location can overlap the geofence for another location. The geofence for
        this location can overlap up to 5 locations.
      operationId: updateLocation
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json;charset=UTF-8:
            schema:
              $ref: '#/components/schemas/LocationDto'
      responses:
        '200':
          description: Successful operation
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/LocationDto'
components:
  schemas:
    LocationDto:
      required:
        - categoryName
        - name
      type: object
      properties:
        id:
          pattern: ^[\w]*$
          type: string
        radius:
          type: number
          format: double
        name:
          type: string
        categoryName:
          type: string
        address:
          $ref: '#/components/schemas/AddressDto'
        coordinate:
          $ref: '#/components/schemas/CoordinateDto'
        polygon:
          maxItems: 2147483647
          minItems: 3
          type: array
          items:
            $ref: '#/components/schemas/CoordinateDto'
        reference:
          maxLength: 50
          minLength: 0
          type: string
        phoneNumber:
          maxLength: 20
          minLength: 0
          pattern: ^\+?\d+$
          type: string
        contact:
          maxLength: 50
          minLength: 0
          type: string
        email:
          maxLength: 50
          minLength: 0
          type: string
        notes:
          maxLength: 140
          minLength: 0
          type: string
    AddressDto:
      required:
        - city
        - country
        - postCode
      type: object
      properties:
        formattedAddress:
          type: string
        road:
          type: string
        roadNumber:
          type: string
        city:
          maxLength: 50
          minLength: 0
          type: string
        postCode:
          maxLength: 20
          minLength: 0
          type: string
        country:
          maxLength: 50
          minLength: 0
          type: string
        roadType:
          type: string
    CoordinateDto:
      required:
        - latitude
        - longitude
      type: object
      properties:
        longitude:
          type: number
          description: Longitude coordinate in decimal degrees.
          format: double
        latitude:
          type: number
          description: Latitude coordinate in decimal degrees.
          format: double
      description: Geographic coordinate with latitude and longitude values.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````