---
title: "Create a team"
method: POST
path: "/teams"
tags: ["Teams"]
---

# Create a team

`POST /teams`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/teams`
- Auth: HTTP basic

Creates a new team.

## Request body

- TeamObject
  - `team` object, required
    - `name` string, required
    - `is_admin` boolean
    - `can_manage_users` boolean
    - `can_manage_billing` boolean
    - `can_manage_agents` boolean
    - `can_create_projects` boolean
    - `all_projects_allowed` boolean
    - `user_ids` integer[]

## Response `201`

Created

- IdentifierNameIsAdminObject
  - `identifier` string
  - `name` string
  - `is_admin` boolean
  - `can_manage_users` boolean
  - `can_manage_billing` boolean
  - `can_manage_agents` boolean
  - `can_create_projects` boolean
  - `all_projects_allowed` boolean
  - `members` object[]
    - `id` integer
    - `identifier` string
    - `first_name` string
    - `last_name` string
    - `email_address` string
  - `project_assignments` object[]
    - `name` string
    - `identifier` string
    - `can_deploy_all` boolean
    - `can_update_config` boolean
    - `can_manage_config_files` boolean

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
