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

# Create device action

> Create a pending action for a device (e.g., model deployment)



## OpenAPI

````yaml /api-spec.json post /core/device-actions
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /core/device-actions:
    post:
      tags:
        - Devices & provisioning
      summary: Create device action
      description: Create a pending action for a device (e.g., model deployment)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/types.CreateDeviceActionRequest'
        description: Device action payload
        required: true
      responses:
        '201':
          description: Action created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.DeviceAction'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '404':
          description: Device not found
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    types.CreateDeviceActionRequest:
      properties:
        device_id:
          type: string
        download_url:
          type: string
        file_ext:
          type: string
        label_map:
          type: string
        model_id:
          type: string
        model_name:
          type: string
        type:
          type: string
        version:
          type: string
      required:
        - device_id
        - type
      type: object
    models.DeviceAction:
      properties:
        completed_at:
          type: string
        created_at:
          type: string
        device_id:
          description: Target device
          type: string
        download_url:
          description: Presigned URL
          type: string
        file_ext:
          description: '".pt", ".onnx", ".tflite", ".synap"'
          type: string
        id:
          type: integer
        label_map:
          description: Label mapping for inference
          type: string
        model_id:
          description: Model update fields
          type: string
        model_name:
          type: string
        status:
          description: '"pending", "completed"'
          type: string
        type:
          description: '"model_update"'
          type: string
        updated_at:
          type: string
        version:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````