---
title: "Update a team perimeter"
method: POST
path: "/v1/teams/{team_id}/sources"
tags: ["Team Sources"]
---

# Update a team perimeter

`POST /v1/teams/{team_id}/sources`

This endpoint allows you to add and remove sources from the perimeter of a team.

If you are using a personal access token, you need to be a workspace manager.

## Path parameters

- `team_id` integer, required

## Request body

- object
  - `sources_to_add` integer[] — Ids of sources to add to the perimeter.
  - `sources_to_remove` integer[] — Ids of sources to remove from the perimeter.

## Response `204`

Team perimeter updated

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Permission denied
- `404` — Not found
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
