move_workspaces_to_project
Relocate multiple workspaces to a specified project in Terraform Cloud using the designated API endpoint. Requires user permissions on both source and destination projects.
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 |