# Set a project's team

Source: https://www.supervisible.com/developers/projects/put-projects-id-team

PUT /projects/{project_id}/team



## PUT /projects/{project_id}/team

Puts a project in a pod (the team that runs it), or takes it out with teamId null. A client's projects can sit in different pods. Replaces any previous team. Requires the key creator to be able to manage the project.

Base URL: https://app.supervisible.com/api/v1

Required scope: write:teams

## Operation contract

The definition below includes parameters, request bodies, response schemas, examples and authentication requirements.

```json
{
  "summary": "Set a project's team",
  "description": "Puts a project in a pod (the team that runs it), or takes it out with teamId null. A client's projects can sit in different pods. Replaces any previous team. Requires the key creator to be able to manage the project.",
  "tags": [
    "projects"
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-required-scope": "write:teams",
  "parameters": [
    {
      "in": "path",
      "name": "project_id",
      "required": true,
      "description": "Project ID.",
      "schema": {
        "type": "string",
        "description": "UUID"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "teamId": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "teamId"
          ],
          "additionalProperties": false,
          "example": {
            "teamId": "019cb675-c4d6-7e90-8806-25e5145c3a07"
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Successful response",
      "content": {
        "application/json": {
          "example": {
            "data": {
              "id": "019cb675-c4d6-7e90-8806-25e5145c3a06",
              "name": "CRM Sync Project",
              "teamId": "019cb675-c4d6-7e90-8806-25e5145c3a07",
              "teamName": "Pod 3"
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid request"
    },
    "401": {
      "description": "Unauthorized"
    },
    "403": {
      "description": "Missing required scope or current member permission"
    },
    "404": {
      "description": "Not found"
    },
    "409": {
      "description": "Conflict; refresh current state and preview again"
    },
    "429": {
      "description": "Rate limited; honor Retry-After"
    }
  }
}
```

## Referenced definitions

```json
{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key"
      }
    }
  }
}
```

[Complete OpenAPI specification](https://www.supervisible.com/openapi/public-api-v1.json)
