# Transfer workspace ownership

`POST /v1/workspaces/{workspaceId}/transfer-ownership`

Makes another member (not a guest) the owner. You become an admin.

Needs a signed-in session; API and OAuth tokens get 403.

## Request

```bash
curl -X POST "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/transfer-ownership" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "kG7qL2m9XzP4tR8w"
  }'
```

## Path parameters

- `workspaceId` (string, required): (1–64 chars)

## Body

- `userId` (string, required): (1–64 chars)

## Response

- `ok` (true, required)

```json
{
  "ok": true
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
