---
title: "Create tenant-based handle"
method: POST
path: "/api/v2/integration/ms-teams/configuration/tenant-based-handles"
tags: ["Microsoft Teams Integration"]
---

# Create tenant-based handle

`POST /api/v2/integration/ms-teams/configuration/tenant-based-handles`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/ms-teams/configuration/tenant-based-handles`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Create a tenant-based handle in the Datadog Microsoft Teams integration.

## Request body

- MicrosoftTeamsCreateTenantBasedHandleRequest: Create tenant-based handle request.
  - `data` MicrosoftTeamsTenantBasedHandleRequestData, required: Tenant-based handle data from a response.
    - `attributes` MicrosoftTeamsTenantBasedHandleRequestAttributes, required: Tenant-based handle attributes.
      - `channel_id` string, required: Channel id.
      - `name` string, required: Tenant-based handle name.
      - `team_id` string, required: Team id.
      - `tenant_id` string, required: Tenant id.
    - `type` 'tenant-based-handle', required: Specifies the tenant-based handle resource type.

## Response `201`

CREATED

- MicrosoftTeamsTenantBasedHandleResponse: Response of a tenant-based handle.
  - `data` MicrosoftTeamsTenantBasedHandleResponseData, required: Tenant-based handle data from a response.
    - `attributes` MicrosoftTeamsTenantBasedHandleAttributes: Tenant-based handle attributes.
      - `channel_id` string: Channel id.
      - `name` string: Tenant-based handle name.
      - `team_id` string: Team id.
      - `tenant_id` string: Tenant id.
    - `id` string: The ID of the tenant-based handle.
    - `type` 'tenant-based-handle': Specifies the tenant-based handle resource type.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `412`: Failed Precondition
- `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)
