> ## 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.

# Add Location Category

> PUT request to add a new location category. The identifier for the newly added location category is included in the JSON object returned as the response.



## OpenAPI

````yaml /api-reference/fleet-management.json put /public/v1/customer/{customerId}/location/category
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.masternautconnect.com/connect-webservices/services
    description: Product Server
security:
  - basicAuth: []
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/category:
    put:
      tags:
        - /location/category
      summary: Add Location Category
      description: >-
        PUT request to add a new location category. The identifier for the newly
        added location category is included in the JSON object returned as the
        response.
      operationId: createOrUpdateCategory
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json;charset=UTF-8:
            schema:
              $ref: '#/components/schemas/LocationCategoryDto'
      responses:
        '200':
          description: Successful operation
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/LocationCategoryDto'
components:
  schemas:
    LocationCategoryDto:
      required:
        - icon
        - name
      type: object
      properties:
        id:
          pattern: ^[\w]*$
          type: string
        name:
          type: string
        icon:
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````