---
title: "Create an Applications Device Group"
method: POST
path: "/workspace/applications/{application_id}/device_groups"
tags: ["Applications - Device Groups"]
---

# Create an Applications Device Group

`POST /workspace/applications/{application_id}/device_groups`

Create a new Device Group in your account.

## Path parameters

- `application_id` integer, required

## Request body

- DeviceGroupRequest
  - `name` string, required
  - `user_agent` string, required — Enter a valid regular expression pattern to identify user agents.

## Response `201`

Device group created successfully.

- DeviceGroupResponse
  - `state` string
  - `data` DeviceGroup, required
    - `id` integer, required
    - `name` string, required
    - `user_agent` string, required — Enter a valid regular expression pattern to identify user agents.
    - `created_at` string, date-time, nullable, required

## Other responses

- `400` — Validation Error
- `401` — Authentication Failed
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `429` — Throttled
- `500` — Internal Server Error

---

[API](https://skmtc.dev/azion/apis/azion-api.md) · [All operations](https://skmtc.dev/azion/apis/azion-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azion/azion-api/revisions/bb3250697218/schema)
