---
title: "Creates a new device detail"
method: POST
path: "/device_details"
tags: ["DeviceDetail"]
---

# Creates a new device detail

`POST /device_details`

Creates a new device detail

## Request body

- AddDeviceDetail
  - `user_id` integer
  - `appname` string
  - `appversion` string
  - `deviceuid` string
  - `devicetoken` string
  - `devicename` string
  - `devicemodel` string
  - `deviceversion` string
  - `pushbadge` string
  - `pushalert` string
  - `pushsound` string
  - `development` string
  - `status` string
  - `latitude` number, float, required
  - `longitude` number, float, required
  - `devicetype` integer, required

## Response `200`

New device detail added

- DeviceDetail
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `user_id` integer
  - `appname` string
  - `appversion` string
  - `deviceuid` string
  - `devicetoken` string
  - `devicename` string
  - `devicemodel` string
  - `deviceversion` string
  - `pushbadge` string
  - `pushalert` string
  - `pushsound` string
  - `development` string
  - `status` string
  - `latitude` number, float
  - `longitude` number, float
  - `devicetype` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/revisions/8db13a44d758/schema)
