v3

latestOpenAPI 3.0.3MIT2026-07-313881,2455.6 MB
Teams

Creates a new team subject.

post/api/teams/{team_id}/subjects/

Path parameters

team_idstring required

Headers

ClientSessionIdstring uuid

An optional header that marks the action performed by this request as having occurred in a particular client session. Then using the undo/redo endpoints with the same ClientSessionId header this action can be undone/redone.

Request body

idinteger required
subject_idinteger

The subject's unique identifier.

subject_user_emailstring email

The user subject's email address.

subject_type'auth.User' required
  • auth.User - auth.User

Response

idinteger required
subject_idinteger required

The unique subject ID.

subject_typestring required

Returns the TeamSubject's subject_type natural key.

:param obj: The TeamSubject record. :return: The subject's content type natural key.

teaminteger required

The team this subject belongs to.