---
title: "Create Device"
method: POST
path: "/device"
---

# Create Device

`POST /device`

API that creates new device in the system

## Headers

- `Content-Type` string
- `Authorization` string

## Request body

- object
  - `identification` string — string | unique | required
  - `model` string — max:128 | optional
  - `location` object
    - `latitude` number, double — between:-90,90 | optional
    - `longitude` number, double — between:-180,180 | optional
  - `schemaId` integer — min:1 | optional
  - `groupId` integer — min:1 | optional
  - `name` string — max:128 | optional
  - `indoor` boolean — optional

## Response `200`

200

- object
  - `data` object
    - `userId` integer
    - `schemaId` integer
    - `groupId` integer
    - `id` integer
    - `name` string
    - `model` string
    - `addOn` string
    - `editOn` string
    - `active` boolean
    - `identification` string
    - `indoor` boolean
    - `location` object
      - `latitude` unknown
      - `longitude` unknown

## Other responses

- `401` — 401

---

[API](https://skmtc.net/ctos/apis/readme.md) · [All operations](https://skmtc.net/ctos/apis/readme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ctos/readme/versions/703ed653dbf6/schema)
