> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Table Group

> Bulk set or clear the group on multiple tables.

Set or clear the `group` label on multiple persistent tables at once. An empty `group` unsets the field.

## Authentication

<ParamField header="x-api-key" type="string" required>Your Refold API key.</ParamField>
<ParamField header="linked_account_id" type="string" required>The linked account that owns the tables.</ParamField>

## Body Parameters

<ParamField body="tableIds" type="array" required>IDs of the tables to update.</ParamField>
<ParamField body="group" type="string">Group label to set. An empty string unsets the group.</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    Returns `200` with an empty body on success.
  </Tab>

  <Tab title="400 Bad Request">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error_code" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  ```

  ```json 400 theme={null}
  {
    "status_code": 400,
    "http_error_type": "BAD_REQUEST",
    "error_code": "SERVER_ERROR",
    "message": "tableIds is required"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL (set group) theme={null}
  curl -X PUT "https://app.refold.ai/api/v2/public/tables/group/edit" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
    -H "Content-Type: application/json" \
    -d '{ "tableIds": ["6a314fc3d396207fd2506a0a"], "group": "crm-tables" }'
  ```

  ```bash cURL (clear group) theme={null}
  curl -X PUT "https://app.refold.ai/api/v2/public/tables/group/edit" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
    -H "Content-Type: application/json" \
    -d '{ "tableIds": ["6a314fc3d396207fd2506a0a"], "group": "" }'
  ```
</RequestExample>
