---
title: "Assign seats to users"
method: POST
path: "/api/v2/seats/users"
tags: ["Seats"]
---

# Assign seats to users

`POST /api/v2/seats/users`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/seats/users`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Assign seats to users for a product code.

## Request body

- AssignSeatsUserRequest: The request body for assigning seats to users for a product code.
  - `data` AssignSeatsUserRequestData: The request data object containing attributes for assigning seats to users.
    - `attributes` AssignSeatsUserRequestDataAttributes, required: Attributes specifying the product and users to whom seats will be assigned.
      - `product_code` string, required: The product code for which to assign seats.
      - `user_uuids` string[], required: The list of user IDs to assign seats to.
    - `id` string: The ID of the assign seats user request.
    - `type` 'seat-assignments', required: Seat assignments resource type.

## Response `201`

Created

- AssignSeatsUserResponse: The response body returned after successfully assigning seats to users.
  - `data` AssignSeatsUserResponseData: The response data object containing attributes of the seat assignment result.
    - `attributes` AssignSeatsUserResponseDataAttributes: Attributes of the assign seats response, including the list of users assigned and the product code.
      - `assigned_ids` string[]: The list of user IDs to which the seats were assigned.
      - `product_code` string: The product code for which the seats were assigned.
    - `id` string: The ID of the assign seats user response.
    - `type` 'seat-assignments': Seat assignments resource type.

## Other responses

- `400`: Bad Request
- `422`: Unprocessable Entity
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
