---
title: "Update a team <-> project relation"
method: POST
path: "/projects/{projectID}/teams/{teamID}"
tags: ["sharing"]
---

# Update a team <-> project relation

`POST /projects/{projectID}/teams/{teamID}`

Update a team <-> project relation. Mostly used to update the permission that team has.

## Path parameters

- `projectID` integer, required
- `teamID` integer, required

## Request body

- ModelsTeamProject
  - `created` string — A timestamp when this relation was created. You cannot change this value.
  - `id` integer — The unique, numeric id of this project <-> team relation.
  - `permission` 0 | 1 | 2
  - `team_id` integer — The team id.
  - `updated` string — A timestamp when this relation was last updated. You cannot change this value.

## Response `200`

The updated team <-> project relation.

- ModelsTeamProject
  - `created` string — A timestamp when this relation was created. You cannot change this value.
  - `id` integer — The unique, numeric id of this project <-> team relation.
  - `permission` 0 | 1 | 2
  - `team_id` integer — The team id.
  - `updated` string — A timestamp when this relation was last updated. You cannot change this value.

## Other responses

- `403` — The user does not have admin-access to the project
- `404` — Team or project does not exist.
- `500` — Internal error

---

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