---
title: "Link Workspace To Team"
method: POST
path: "/v2/teams/{team_id}/workspaces/{workspace_id}"
tags: ["v2 - Teams"]
---

# Link Workspace To Team

`POST /v2/teams/{team_id}/workspaces/{workspace_id}`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/teams/{team_id}/workspaces/{workspace_id}`
- Auth: HTTP bearer

Link a workspace to a team.

Requirements:
- User must have WORKSPACE_CREATE permission in the team
- User must be the workspace owner

Note: Linking a workspace to a team gives all team members access.

## Path parameters

- `team_id` string, required
- `workspace_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
