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

# Update customer

> Requires `write:customers`.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/customers/{id}
openapi: 3.0.0
info:
  title: Car Storage Software API
  version: 1.1.0
  description: >-
    Team-scoped REST API for Car Storage Software. Authenticate with a team API
    key (`Authorization: Bearer <key>` or `x-api-key: <key>`) created under
    Settings → Integrations → API. Keys carry granular `read:*` / `write:*`
    scopes; read never implies write.
servers:
  - url: https://www.carstoragesoftware.com
security: []
paths:
  /api/v1/customers/{id}:
    patch:
      tags:
        - Customers
      summary: Update customer
      description: Requires `write:customers`.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CustomerUpdate'
      responses:
        '200':
          description: Updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1CustomerResponse'
        '401':
          description: Missing, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing required scope, or API disabled for team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    V1CustomerUpdate:
      type: object
      properties:
        firstName:
          type: string
          minLength: 1
        lastName:
          type: string
          minLength: 1
        companyName:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
          format: email
        phone:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        locationId:
          type: string
          nullable: true
          format: uuid
        isActive:
          type: boolean
        restore:
          type: boolean
        deletedAt:
          nullable: true
    V1CustomerResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/V1Customer'
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          nullable: true
      required:
        - error
    V1Customer:
      type: object
      properties:
        id:
          type: string
          format: uuid
        teamId:
          type: string
          nullable: true
        userId:
          type: string
          nullable: true
        locationId:
          type: string
          nullable: true
          format: uuid
        firstName:
          type: string
        lastName:
          type: string
        companyName:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        isActive:
          type: boolean
        deletedAt:
          type: string
          nullable: true
          format: date-time
        createdAt:
          type: string
          nullable: true
          format: date-time
        updatedAt:
          type: string
          nullable: true
          format: date-time
      required:
        - id
        - teamId
        - userId
        - locationId
        - firstName
        - lastName
        - companyName
        - email
        - phone
        - address
        - city
        - state
        - zip
        - country
        - isActive
        - deletedAt
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Team API key from Settings → Integrations. Use `Authorization: Bearer
        <key>` or `x-api-key`.

````

## Related topics

- [Edit customer details](/docs/contacts/edit-customer-details.md)
- [Review customer activity and history](/docs/contacts/review-customer-activity-and-history.md)
- [Manage recurring billing](/docs/payments/manage-recurring-billing.md)
- [Update car](/docs/api-reference/cars/update-car.md)
- [Update appointment](/docs/api-reference/appointments/update-appointment.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.