---
agentTools:
  projectIndex: https://docs.qdelivery.app/llms.txt
---

# Create

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Integration",
    "version": "1.6.1"
  },
  "servers": [
    {
      "url": "https://api.dev.qdelivery.app/api/integration"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/teams": {
      "post": {
        "summary": "Create",
        "description": "",
        "operationId": "create-team",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "hub_id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"id\": 44,\n\t\"hub_id\": 2,\n\t\"name\": \"Team 2-2\",\n\t\"couriers_count\": null,\n\t\"tags\": [],\n\t\"created_at\": \"2022-05-12T06:49:24.000000Z\",\n\t\"updated_at\": \"2022-05-12T06:49:24.000000Z\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 44,
                      "default": 0
                    },
                    "hub_id": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "Team 2-2"
                    },
                    "couriers_count": {},
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2022-05-12T06:49:24.000000Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2022-05-12T06:49:24.000000Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6602b1495613fc002042a788:6602b14a5613fc002042a7af"
}
```