---
title: "POST /api/teams/{team_id}/subjects/"
method: POST
path: "/api/teams/{team_id}/subjects/"
tags: ["Teams"]
---

# POST /api/teams/{team_id}/subjects/

`POST /api/teams/{team_id}/subjects/`

Creates a new team subject.

## Path parameters

- `team_id` string, required

## Headers

- `ClientSessionId` string, uuid

## Request body

- TeamSubject — Mixin to a DRF serializer class to raise an exception if data with unknown fields is provided to the serializer.
  - `id` integer, required
  - `subject_id` integer — The subject's unique identifier.
  - `subject_user_email` string, email — The user subject's email address.
  - `subject_type` 'auth.User', required — * `auth.User` - auth.User

## Response `200`

- TeamSubjectResponse
  - `id` integer, required
  - `subject_id` integer, required — The unique subject ID.
  - `subject_type` string, required — Returns the TeamSubject's `subject_type` natural key. :param obj: The TeamSubject record. :return: The subject's content type natural key.
  - `team` integer, required — The team this subject belongs to.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
