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

# Ask a device to report its state back to the MDM

> Ask ONE device to re-report its details, software inventory and policy results to the MDM. This refreshes what the MDM knows about the device, NOT Primo's own device record: the MDM only flags the device, the report lands the next time it checks in, and Primo picks that state up later through its own device sync. Use it after a fix (a script run, an install) before re-reading `getDeviceSoftware`, which otherwise still answers with the state captured by the last inventory cycle. Safe to call repeatedly. To re-read the Primo-managed software rows from the MDM instead of asking the device, use `syncDeviceSoftware`; to pull what the MDM already knows into Primo's own device record, use `syncPrimoDevice`.

<span className="badge-write">Key: Write</span><span className="badge-company">Scope: Company</span>


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /devices/{deviceId}/refetch
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /devices/{deviceId}/refetch:
    post:
      tags:
        - Devices
      summary: Ask a device to report its state back to the MDM
      description: >-
        Ask ONE device to re-report its details, software inventory and policy
        results to the MDM. This refreshes what the MDM knows about the device,
        NOT Primo's own device record: the MDM only flags the device, the report
        lands the next time it checks in, and Primo picks that state up later
        through its own device sync. Use it after a fix (a script run, an
        install) before re-reading `getDeviceSoftware`, which otherwise still
        answers with the state captured by the last inventory cycle. Safe to
        call repeatedly. To re-read the Primo-managed software rows from the MDM
        instead of asking the device, use `syncDeviceSoftware`; to pull what the
        MDM already knows into Primo's own device record, use `syncPrimoDevice`.
      operationId: refetchDevice
      parameters:
        - name: deviceId
          required: true
          in: path
          schema:
            type: string
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceActionResult_Output'
components:
  schemas:
    DeviceActionResult_Output:
      type: object
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
          description: A human-readable description of the action
      required:
        - success
        - message
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````