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

# Refresh Route



## OpenAPI

````yaml /api/openapi.json post /api/inventory/refresh
openapi: 3.1.0
info:
  title: Halite
  version: 0.1.0
servers: []
security: []
paths:
  /api/inventory/refresh:
    post:
      tags:
        - inventory
      summary: Refresh Route
      operationId: refresh_route_api_inventory_refresh_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefreshOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RefreshIn:
      properties:
        target:
          type: string
          maxLength: 1024
          minLength: 1
          title: Target
          default: '*'
        target_type:
          type: string
          enum:
            - glob
            - list
            - pcre
            - grain
            - nodegroup
            - compound
          title: Target Type
          default: glob
      type: object
      title: RefreshIn
      description: |-
        Body for ``POST /api/inventory/refresh``.

        ``target='*'`` + ``target_type='glob'`` means "every connected minion".
        Pin the target down if you want to refresh just one host.
    RefreshOut:
      properties:
        minions_refreshed:
          type: integer
          title: Minions Refreshed
        package_counts:
          additionalProperties:
            type: integer
          type: object
          title: Package Counts
      type: object
      required:
        - minions_refreshed
        - package_counts
      title: RefreshOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````