> For the complete documentation index, see [llms.txt](https://docs.usepylon.com/pylon-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usepylon.com/pylon-docs/developer/api/api-reference/teams.md).

# Teams

## Get a list of teams

> Returns all teams for the organization, each with how it assigns issues and its recurring\
> assignment schedule if it has one.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetTeamsResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTeamsResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetTeamsResponseBody":{"properties":{"data":{"description":"The data payload of the response.","items":{"$ref":"#/components/schemas/Team"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"},"Team":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfiguration"},"id":{"description":"The ID of the team.","type":"string"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamSchedule"},"users":{"description":"The users in the team.","items":{"$ref":"#/components/schemas/MiniUser"},"type":"array"}},"type":"object"},"TeamAssignmentConfiguration":{"properties":{"assignment_method":{"description":"How issues are routed to team members. One of routing, schedule, manual, pull_queue.","type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"},"team_schedule_id":{"description":"The ID of the schedule this team assigns from. Read-only; a team has at most one schedule.","type":"string"}},"type":"object"},"TeamSchedule":{"properties":{"blocks":{"description":"Who receives issues and when.","items":{"$ref":"#/components/schemas/TeamScheduleBlock"},"type":"array"},"id":{"description":"The ID of the schedule.","type":"string"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block hours are read in.","type":"string"}},"type":"object"},"TeamScheduleBlock":{"properties":{"days":{"description":"The days this block covers. Empty when the recurrence is daily.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day.","type":"string"},"recurrence":{"description":"How often the block repeats: weekly, biweekly, or daily. A block configured in the\nPylon app with a recurrence these fields cannot express reads as custom, with the\nfields above omitted.","type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The sub-team that receives issues during this block.","type":"string"},"user_id":{"description":"The team member who receives issues during this block.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on.","format":"int64","type":"integer"}},"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"type":"object"},"Pagination":{"properties":{"cursor":{"description":"The cursor for the next page of results.","type":"string"},"has_next_page":{"description":"Indicates if there is a next page of results.","type":"boolean"}},"required":["cursor","has_next_page"],"type":"object"},"ErrorApiResponseBody":{"properties":{"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"}}},"paths":{"/teams":{"get":{"description":"Returns all teams for the organization, each with how it assigns issues and its recurring\nassignment schedule if it has one.\n\n**Rate limit:** 300 requests per minute","operationId":"GetTeams","responses":{"200":{"$ref":"#/components/responses/GetTeamsResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get a list of teams","tags":["teams"]}}}}
```

## Get a team by its ID

> Returns a single team by ID, with how it assigns issues and its recurring assignment\
> schedule if it has one.\
> \
> \*\*Rate limit:\*\* 300 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"responses":{"GetTeamResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTeamResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}},"schemas":{"GetTeamResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Team"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"},"Team":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfiguration"},"id":{"description":"The ID of the team.","type":"string"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamSchedule"},"users":{"description":"The users in the team.","items":{"$ref":"#/components/schemas/MiniUser"},"type":"array"}},"type":"object"},"TeamAssignmentConfiguration":{"properties":{"assignment_method":{"description":"How issues are routed to team members. One of routing, schedule, manual, pull_queue.","type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"},"team_schedule_id":{"description":"The ID of the schedule this team assigns from. Read-only; a team has at most one schedule.","type":"string"}},"type":"object"},"TeamSchedule":{"properties":{"blocks":{"description":"Who receives issues and when.","items":{"$ref":"#/components/schemas/TeamScheduleBlock"},"type":"array"},"id":{"description":"The ID of the schedule.","type":"string"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block hours are read in.","type":"string"}},"type":"object"},"TeamScheduleBlock":{"properties":{"days":{"description":"The days this block covers. Empty when the recurrence is daily.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day.","type":"string"},"recurrence":{"description":"How often the block repeats: weekly, biweekly, or daily. A block configured in the\nPylon app with a recurrence these fields cannot express reads as custom, with the\nfields above omitted.","type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The sub-team that receives issues during this block.","type":"string"},"user_id":{"description":"The team member who receives issues during this block.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on.","format":"int64","type":"integer"}},"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"}}},"paths":{"/teams/{id}":{"get":{"description":"Returns a single team by ID, with how it assigns issues and its recurring assignment\nschedule if it has one.\n\n**Rate limit:** 300 requests per minute","operationId":"GetTeam","parameters":[{"description":"The ID of the team to fetch.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/GetTeamResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Get a team by its ID","tags":["teams"]}}}}
```

## Update an existing team

> Updates an existing team, including how it assigns issues and its recurring assignment\
> schedule. Only provided fields are modified; supplying schedule.blocks replaces the whole\
> rotation, and omitting it leaves the rotation unchanged.\
> \
> \*\*Rate limit:\*\* 120 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"UpdateTeamRequestBody":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfigurationInput"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamScheduleInput"},"user_ids":{"description":"The list of user IDs to add to the team. If provided, the team members will be updated to be exactly the given users.","items":{"type":"string"},"type":"array"}},"type":"object"},"TeamAssignmentConfigurationInput":{"properties":{"assignment_method":{"description":"How issues are routed to team members. Setting schedule routes from this team's own\nschedule, so the team must already have one or be given one in the same request.","enum":["routing","schedule","manual"],"type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"}},"type":"object"},"TeamScheduleInput":{"properties":{"blocks":{"description":"Who receives issues and when. If provided, the schedule's blocks will be updated to be\nexactly the given blocks.","items":{"$ref":"#/components/schemas/TeamScheduleBlockInput"},"type":"array"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block start times are read in. Defaults to America/Los_Angeles.","type":"string"}},"type":"object"},"TeamScheduleBlockInput":{"properties":{"days":{"description":"The days this block covers, for example [\"monday\",\"tuesday\"]. Required unless\nrecurrence is daily, which covers every day.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day, so 22:00 to 10:00 is an overnight shift and 00:00 to 00:00 is a full\nday. A block cannot run longer than 24 hours.","type":"string"},"recurrence":{"description":"How often the block repeats. Defaults to weekly. A block recurs indefinitely; to change a\nrotation, send the new set of blocks.","enum":["weekly","biweekly","daily"],"type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The ID of the sub-team that receives issues during this block. Must already be a\nsub-team of the team that owns the schedule.","type":"string"},"user_id":{"description":"The ID of the team member who receives issues during this block. Exactly one of\nuser_id or team_id is required.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on, 0 or 1.","format":"int64","type":"integer"}},"required":["start_time","end_time"],"type":"object"},"UpdateTeamResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Team"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"},"Team":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfiguration"},"id":{"description":"The ID of the team.","type":"string"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamSchedule"},"users":{"description":"The users in the team.","items":{"$ref":"#/components/schemas/MiniUser"},"type":"array"}},"type":"object"},"TeamAssignmentConfiguration":{"properties":{"assignment_method":{"description":"How issues are routed to team members. One of routing, schedule, manual, pull_queue.","type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"},"team_schedule_id":{"description":"The ID of the schedule this team assigns from. Read-only; a team has at most one schedule.","type":"string"}},"type":"object"},"TeamSchedule":{"properties":{"blocks":{"description":"Who receives issues and when.","items":{"$ref":"#/components/schemas/TeamScheduleBlock"},"type":"array"},"id":{"description":"The ID of the schedule.","type":"string"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block hours are read in.","type":"string"}},"type":"object"},"TeamScheduleBlock":{"properties":{"days":{"description":"The days this block covers. Empty when the recurrence is daily.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day.","type":"string"},"recurrence":{"description":"How often the block repeats: weekly, biweekly, or daily. A block configured in the\nPylon app with a recurrence these fields cannot express reads as custom, with the\nfields above omitted.","type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The sub-team that receives issues during this block.","type":"string"},"user_id":{"description":"The team member who receives issues during this block.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on.","format":"int64","type":"integer"}},"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"}},"responses":{"UpdateTeamResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/teams/{id}":{"patch":{"description":"Updates an existing team, including how it assigns issues and its recurring assignment\nschedule. Only provided fields are modified; supplying schedule.blocks replaces the whole\nrotation, and omitting it leaves the rotation unchanged.\n\n**Rate limit:** 120 requests per minute","operationId":"UpdateTeam","parameters":[{"description":"The ID of the team to update.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/UpdateTeamResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Update an existing team","tags":["teams"]}}}}
```

## Create a new team

> Creates a new team with a name and optional member list. Optionally sets how the team\
> assigns issues and creates its recurring assignment schedule in the same call.\
> \
> \*\*Rate limit:\*\* 30 requests per minute

```json
{"openapi":"3.0.3","info":{"title":"Pylon API.","version":"1.0.0"},"servers":[{"description":"US region","url":"https://api.usepylon.com"},{"description":"EU region","url":"https://api.eu.usepylon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"description":"Authorization: Bearer <token>","scheme":"bearer","type":"http"}},"schemas":{"CreateTeamRequestBody":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfigurationInput"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamScheduleInput"},"user_ids":{"description":"The list of user IDs to add to the team.","items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"TeamAssignmentConfigurationInput":{"properties":{"assignment_method":{"description":"How issues are routed to team members. Setting schedule routes from this team's own\nschedule, so the team must already have one or be given one in the same request.","enum":["routing","schedule","manual"],"type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"}},"type":"object"},"TeamScheduleInput":{"properties":{"blocks":{"description":"Who receives issues and when. If provided, the schedule's blocks will be updated to be\nexactly the given blocks.","items":{"$ref":"#/components/schemas/TeamScheduleBlockInput"},"type":"array"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block start times are read in. Defaults to America/Los_Angeles.","type":"string"}},"type":"object"},"TeamScheduleBlockInput":{"properties":{"days":{"description":"The days this block covers, for example [\"monday\",\"tuesday\"]. Required unless\nrecurrence is daily, which covers every day.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day, so 22:00 to 10:00 is an overnight shift and 00:00 to 00:00 is a full\nday. A block cannot run longer than 24 hours.","type":"string"},"recurrence":{"description":"How often the block repeats. Defaults to weekly. A block recurs indefinitely; to change a\nrotation, send the new set of blocks.","enum":["weekly","biweekly","daily"],"type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The ID of the sub-team that receives issues during this block. Must already be a\nsub-team of the team that owns the schedule.","type":"string"},"user_id":{"description":"The ID of the team member who receives issues during this block. Exactly one of\nuser_id or team_id is required.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on, 0 or 1.","format":"int64","type":"integer"}},"required":["start_time","end_time"],"type":"object"},"CreateTeamResponseBody":{"properties":{"data":{"$ref":"#/components/schemas/Team"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"},"Team":{"properties":{"assignment_configuration":{"$ref":"#/components/schemas/TeamAssignmentConfiguration"},"id":{"description":"The ID of the team.","type":"string"},"name":{"description":"The name of the team.","type":"string"},"schedule":{"$ref":"#/components/schemas/TeamSchedule"},"users":{"description":"The users in the team.","items":{"$ref":"#/components/schemas/MiniUser"},"type":"array"}},"type":"object"},"TeamAssignmentConfiguration":{"properties":{"assignment_method":{"description":"How issues are routed to team members. One of routing, schedule, manual, pull_queue.","type":"string"},"only_assign_if_user_active":{"description":"Whether issues are only assigned to members who are currently active.","type":"boolean"},"override_existing_assignee":{"description":"Whether assignment replaces an existing assignee.","type":"boolean"},"team_schedule_id":{"description":"The ID of the schedule this team assigns from. Read-only; a team has at most one schedule.","type":"string"}},"type":"object"},"TeamSchedule":{"properties":{"blocks":{"description":"Who receives issues and when.","items":{"$ref":"#/components/schemas/TeamScheduleBlock"},"type":"array"},"id":{"description":"The ID of the schedule.","type":"string"},"support_hours_id":{"description":"The ID of the support hours the schedule is limited to.","type":"string"},"timezone":{"description":"The IANA timezone the block hours are read in.","type":"string"}},"type":"object"},"TeamScheduleBlock":{"properties":{"days":{"description":"The days this block covers. Empty when the recurrence is daily.","items":{"type":"string"},"type":"array"},"end_time":{"description":"When the block ends, as HH:MM in the schedule's timezone. An end at or before the start\nmeans the next day.","type":"string"},"recurrence":{"description":"How often the block repeats: weekly, biweekly, or daily. A block configured in the\nPylon app with a recurrence these fields cannot express reads as custom, with the\nfields above omitted.","type":"string"},"start_time":{"description":"When the block starts, as HH:MM in the schedule's timezone.","type":"string"},"team_id":{"description":"The sub-team that receives issues during this block.","type":"string"},"user_id":{"description":"The team member who receives issues during this block.","type":"string"},"week_offset":{"description":"Which of the two alternating weeks a biweekly block falls on.","format":"int64","type":"integer"}},"type":"object"},"MiniUser":{"properties":{"email":{"description":"The email of the user.","type":"string"},"id":{"description":"The ID of the user.","type":"string"}},"type":"object"},"ErrorApiResponseBody":{"properties":{"errors":{"description":"The list of errors.","items":{"type":"string"},"type":"array"},"exists_id":{"description":"The ID of the object that already exists if this is a duplicate object error.","type":"string"},"request_id":{"description":"The request ID for tracking.","type":"string"}},"type":"object"}},"responses":{"CreateTeamResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamResponseBody"}}},"description":""},"BadRequestApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The request was invalid or could not be completed."},"ForbiddenApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"The authenticated caller or organization is not allowed to access this endpoint or operation."},"ErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":""},"InternalServerErrorApiResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorApiResponseBody"}}},"description":"An unexpected internal error occurred."}}},"paths":{"/teams":{"post":{"description":"Creates a new team with a name and optional member list. Optionally sets how the team\nassigns issues and creates its recurring assignment schedule in the same call.\n\n**Rate limit:** 30 requests per minute","operationId":"CreateTeam","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamRequestBody"}}}},"responses":{"200":{"$ref":"#/components/responses/CreateTeamResponse"},"400":{"$ref":"#/components/responses/BadRequestApiResponse"},"403":{"$ref":"#/components/responses/ForbiddenApiResponse"},"404":{"$ref":"#/components/responses/ErrorApiResponse"},"500":{"$ref":"#/components/responses/InternalServerErrorApiResponse"}},"summary":"Create a new team","tags":["teams"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.usepylon.com/pylon-docs/developer/api/api-reference/teams.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
