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

# Arbeitsbereiche

> Arbeitsbereiche und Arbeitsbereichsmitgliedschaften verwalten.

# Arbeitsbereiche

Arbeitsbereiche und Arbeitsbereichsmitgliedschaften verwalten.

<script src="/locale-bridge.js" />

Die Beispiele verwenden den A2A-Code-Modus. MCP stellt denselben Code-Modus über sein Tool `execute` bereit.

## Funktionen

### `workspaces.add`

```text theme={null}
workspaces.add(account_id: str, name: str) -> Workspace
```

Arbeitsbereiche: `workspaces.add`.

| Eigenschaft                | Wert                                               | Eigenschaft                    | Wert               |
| -------------------------- | -------------------------------------------------- | ------------------------------ | ------------------ |
| Erforderliche Berechtigung | `workspace.manage`                                 | Authentifizierung erforderlich | `ja`               |
| Ausführungsmodus           | `sync`                                             | Fähigkeit                      | `workspace.manage` |
| Ressourcentyp              | `account`                                          | Ressourcen-ID-Feld             | `account_id`       |
| Öffentliche API-Route      | `POST /v1/public/accounts/{account_id}/workspaces` |                                |                    |

<AccordionGroup>
  <Accordion title="Argumente">
    | Name         | Typ   | Erforderlich |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | ja           |
    | `name`       | `str` | ja           |
  </Accordion>

  <Accordion title="Rückgabe">
    | Feld         | Typ           | Erforderlich |
    | ------------ | ------------- | ------------ |
    | `account_id` | `str`         | ja           |
    | `id`         | `str`         | ja           |
    | `name`       | `str`         | ja           |
    | `created_at` | `str \| null` | nein         |
    | `status`     | `str`         | nein         |
    | `updated_at` | `str \| null` | nein         |
  </Accordion>

  <Accordion title="A2A-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.add",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
        }
      }
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.add\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.delete`

```text theme={null}
workspaces.delete(account_id: str, workspace_id: str) -> {}
```

Arbeitsbereiche: `workspaces.delete`.

| Eigenschaft                | Wert                                                                | Eigenschaft                    | Wert               |
| -------------------------- | ------------------------------------------------------------------- | ------------------------------ | ------------------ |
| Erforderliche Berechtigung | `workspace.manage`                                                  | Authentifizierung erforderlich | `ja`               |
| Ausführungsmodus           | `sync`                                                              | Fähigkeit                      | `workspace.manage` |
| Ressourcentyp              | `account`                                                           | Ressourcen-ID-Feld             | `account_id`       |
| Öffentliche API-Route      | `DELETE /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |                                |                    |

<AccordionGroup>
  <Accordion title="Argumente">
    | Name           | Typ   | Erforderlich |
    | -------------- | ----- | ------------ |
    | `account_id`   | `str` | ja           |
    | `workspace_id` | `str` | ja           |
  </Accordion>

  <Accordion title="Rückgabe">
    | Feld     | Typ  | Erforderlich |
    | -------- | ---- | ------------ |
    | `result` | `{}` | ja           |
  </Accordion>

  <Accordion title="A2A-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.delete",
          "status": "completed",
          "result": {}
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.get`

```text theme={null}
workspaces.get(account_id: str, workspace_id: str) -> Workspace
```

Arbeitsbereiche: `workspaces.get`.

| Eigenschaft                | Wert                                                             | Eigenschaft                    | Wert             |
| -------------------------- | ---------------------------------------------------------------- | ------------------------------ | ---------------- |
| Erforderliche Berechtigung | `workspace.view`                                                 | Authentifizierung erforderlich | `ja`             |
| Ausführungsmodus           | `sync`                                                           | Fähigkeit                      | `workspace.view` |
| Ressourcentyp              | `account`                                                        | Ressourcen-ID-Feld             | `account_id`     |
| Öffentliche API-Route      | `GET /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |                                |                  |

<AccordionGroup>
  <Accordion title="Argumente">
    | Name           | Typ   | Erforderlich |
    | -------------- | ----- | ------------ |
    | `account_id`   | `str` | ja           |
    | `workspace_id` | `str` | ja           |
  </Accordion>

  <Accordion title="Rückgabe">
    | Feld         | Typ           | Erforderlich |
    | ------------ | ------------- | ------------ |
    | `account_id` | `str`         | ja           |
    | `id`         | `str`         | ja           |
    | `name`       | `str`         | ja           |
    | `created_at` | `str \| null` | nein         |
    | `status`     | `str`         | nein         |
    | `updated_at` | `str \| null` | nein         |
  </Accordion>

  <Accordion title="A2A-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.get",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.get\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.list`

```text theme={null}
workspaces.list(account_id: str, page?: int, page_size?: int) -> Page[Workspace]
```

Arbeitsbereiche: `workspaces.list`.

| Eigenschaft                | Wert                                              | Eigenschaft                    | Wert             |
| -------------------------- | ------------------------------------------------- | ------------------------------ | ---------------- |
| Erforderliche Berechtigung | `workspace.view`                                  | Authentifizierung erforderlich | `ja`             |
| Ausführungsmodus           | `sync`                                            | Fähigkeit                      | `workspace.view` |
| Ressourcentyp              | `account`                                         | Ressourcen-ID-Feld             | `account_id`     |
| Öffentliche API-Route      | `GET /v1/public/accounts/{account_id}/workspaces` |                                |                  |

<AccordionGroup>
  <Accordion title="Argumente">
    | Name         | Typ   | Erforderlich |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | ja           |
    | `page`       | `int` | nein         |
    | `page_size`  | `int` | nein         |
  </Accordion>

  <Accordion title="Rückgabe">
    | Feld        | Typ                                                                                                                     | Erforderlich |
    | ----------- | ----------------------------------------------------------------------------------------------------------------------- | ------------ |
    | `items`     | `[{"account_id": str, "id": str, "name": str, "created_at"?: str \| null, "status"?: str, "updated_at"?: str \| null}]` | ja           |
    | `page`      | `int`                                                                                                                   | ja           |
    | `page_size` | `int`                                                                                                                   | ja           |
    | `total`     | `int`                                                                                                                   | ja           |
  </Accordion>

  <Accordion title="A2A-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.list",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
        }
      }
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.list\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `workspaces.update`

```text theme={null}
workspaces.update(account_id: str, workspace_id: str, name: str) -> Workspace
```

Arbeitsbereiche: `workspaces.update`.

| Eigenschaft                | Wert                                                               | Eigenschaft                    | Wert               |
| -------------------------- | ------------------------------------------------------------------ | ------------------------------ | ------------------ |
| Erforderliche Berechtigung | `workspace.manage`                                                 | Authentifizierung erforderlich | `ja`               |
| Ausführungsmodus           | `sync`                                                             | Fähigkeit                      | `workspace.manage` |
| Ressourcentyp              | `account`                                                          | Ressourcen-ID-Feld             | `account_id`       |
| Öffentliche API-Route      | `PATCH /v1/public/accounts/{account_id}/workspaces/{workspace_id}` |                                |                    |

<AccordionGroup>
  <Accordion title="Argumente">
    | Name           | Typ   | Erforderlich |
    | -------------- | ----- | ------------ |
    | `account_id`   | `str` | ja           |
    | `workspace_id` | `str` | ja           |
    | `name`         | `str` | ja           |
  </Accordion>

  <Accordion title="Rückgabe">
    | Feld         | Typ           | Erforderlich |
    | ------------ | ------------- | ------------ |
    | `account_id` | `str`         | ja           |
    | `id`         | `str`         | ja           |
    | `name`       | `str`         | ja           |
    | `created_at` | `str \| null` | nein         |
    | `status`     | `str`         | nein         |
    | `updated_at` | `str \| null` | nein         |
  </Accordion>

  <Accordion title="A2A-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "workspaces.update",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-Beispiel">
    Anfrage:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
        }
      }
    }
    ```

    Antwort:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.update\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
