move_workspaces_to_project
Transfer one or more workspaces to a specified project in Terraform Cloud. Requires user permissions for both source and destination projects. Utilizes API endpoint: POST /projects/{project_id}/relationships/workspaces.
Instructions
Move workspaces into a project.
Moves one or more workspaces into a project. The user must have permission to move workspaces on both source and destination projects.
API endpoint: POST /projects/{project_id}/relationships/workspaces
Args: project_id: The ID of the destination project (format: "prj-xxxxxxxx") workspace_ids: List of workspace IDs to move (format: ["ws-xxxxxxxx", ...])
Returns: Empty response with HTTP 204 status code if successful
See: docs/tools/project.md for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | Yes | ||
workspace_ids | Yes |