> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Move computer

> Move a computer to a different workspace while preserving its state and ID.

Moves a computer to a different workspace within your account. The computer keeps its state, configuration, and ID - only its parent workspace changes. You must own both the source and destination workspaces.

## Path parameters

<ParamField path="id" type="string" required>
  Computer UUID.
</ParamField>

## Body parameters

<ParamField body="project_id" type="string" required>
  ID of the destination workspace. Must be owned by the same user. (Workspaces are still referred to as `project_id` on this endpoint for backwards compatibility.)
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  `true` if the move succeeded.
</ResponseField>

<ResponseField name="project_id" type="string">
  The destination workspace ID.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X PATCH https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/move \
    -H "Authorization: Bearer $ORGO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"project_id": "550e8400-e29b-41d4-a716-446655440099"}'
  ```

  ```python Python theme={null}
  import requests

  response = requests.patch(
      f"https://www.orgo.ai/api/computers/{computer_id}/move",
      headers={
          "Authorization": f"Bearer {api_key}",
          "Content-Type": "application/json"
      },
      json={"project_id": target_workspace_id}
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(`https://www.orgo.ai/api/computers/${computerId}/move`, {
    method: 'PATCH',
    headers: {
      'Authorization': `Bearer ${apiKey}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ project_id: targetWorkspaceId })
  });

  console.log(await response.json());
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "success": true,
  "project_id": "550e8400-e29b-41d4-a716-446655440099"
}
```

## Errors

| Status | Meaning                                                             |
| ------ | ------------------------------------------------------------------- |
| `400`  | `project_id` missing, or the computer is already in that workspace. |
| `401`  | Missing or invalid API key.                                         |
| `403`  | You do not own the source and/or destination workspace.             |
| `404`  | Computer not found.                                                 |
| `500`  | Internal error while updating the database.                         |


## OpenAPI

````yaml PATCH /computers/{id}/move
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /computers/{id}/move:
    patch:
      tags:
        - Computers
      summary: Move computer to another workspace
      description: >-
        Moves a computer to a different workspace. Both source and destination
        must be owned by you.
      operationId: moveComputer
      parameters:
        - name: id
          in: path
          required: true
          description: Computer ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspace_id
              properties:
                workspace_id:
                  type: string
                  description: Destination workspace ID
                project_id:
                  type: string
                  description: >-
                    Deprecated alias for `workspace_id`. Accepted on input for
                    backwards compatibility.
                  deprecated: true
      responses:
        '200':
          description: Computer moved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  workspace_id:
                    type: string
                  project_id:
                    type: string
                    description: Deprecated alias for `workspace_id`.
                    deprecated: true
        '400':
          description: Already in this workspace
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
    Forbidden:
      description: Access denied or plan limit reached
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Access denied
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Resource not found
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````