---
title: "Change who owns tables"
method: POST
path: "/tables/owner/"
tags: ["tables"]
---

# Change who owns tables

`POST /tables/owner/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/tables/owner/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Name the workspace member who owns these tables, or nobody. Owner means who to ask about a table: it grants and takes away no access, so anyone in the workspace may change it.

## Request body

- TableOwnerChangeSchema: Request body for naming who owns tables.
  - `owner_user_id` string, nullable, required: The workspace member who owns them from now on; null for no owner. Owner means who to ask about a table: it grants and takes away no access, so anyone in the workspace may change it.
  - `table_ids` string[], required: The tables.

## Response `200`

Successful Response

- TablesChangedSchema: Which tables a move, owner change or archive actually changed.
  - `table_ids` string[], required: The tables changed. One already as asked, missing or in Trash is left out.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: That person is not in this workspace.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
