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

# Create car event (drop-off / intake)

> Requires `write:cars`. Records an event done at the facility now (drop-off, pickup, cleaning…), with a photo session; scheduling for later is an appointment. Pass `activityType` (e.g. `vehicle_drop_off`) or `eventTypeId`. A drop-off takes exactly one of `parkingSpotId` or `parkingZoneId`, and assigning parking also needs the write:parking scope. Optional `occurredAt` backdates the event. The default status `uploaded` leaves the session open for photos.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/cars/{id}/events
openapi: 3.0.0
info:
  title: Car Storage Software API
  version: 1.2.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/cars/{id}/events:
    post:
      tags:
        - Cars
      summary: Create car event (drop-off / intake)
      description: >-
        Requires `write:cars`. Records an event done at the facility now
        (drop-off, pickup, cleaning…), with a photo session; scheduling for
        later is an appointment. Pass `activityType` (e.g. `vehicle_drop_off`)
        or `eventTypeId`. A drop-off takes exactly one of `parkingSpotId` or
        `parkingZoneId`, and assigning parking also needs the write:parking
        scope. Optional `occurredAt` backdates the event. The default status
        `uploaded` leaves the session open for photos.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CarEventCreate'
      responses:
        '201':
          description: Event created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1CarEventResponse'
        '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:
    V1CarEventCreate:
      type: object
      properties:
        eventTypeId:
          type: string
          format: uuid
        activityType:
          type: string
          minLength: 1
        parkingSpotId:
          type: string
          nullable: true
          format: uuid
        parkingZoneId:
          type: string
          nullable: true
          format: uuid
        title:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        occurredAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - uploaded
            - completed
    V1CarEventResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/V1CarEvent'
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          nullable: true
      required:
        - error
    V1CarEvent:
      type: object
      properties:
        sessionId:
          type: string
          format: uuid
        appointmentId:
          type: string
          nullable: true
          format: uuid
        eventTypeName:
          type: string
        activityType:
          type: string
          nullable: true
        carLabel:
          type: string
          nullable: true
        spotName:
          type: string
          nullable: true
        zoneName:
          type: string
          nullable: true
        navigationUrl:
          type: string
      required:
        - sessionId
        - appointmentId
        - eventTypeName
        - activityType
        - navigationUrl
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Team API key from Settings → Integrations. Use `Authorization: Bearer
        <key>` or `x-api-key`.

````

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