---
title: "Set Current Tree Id"
method: POST
path: "/trees/current"
tags: ["Trees"]
---

# Set Current Tree Id

`POST /trees/current`

## Request

- Base URL: `https://apibeta.familysearch.org/platform`
- URL: `https://apibeta.familysearch.org/platform/trees/current`
- Auth: HTTP bearer

Set the id of the current tree.

## Headers

- `Content-Type` 'application/x-fs-v1+json' | 'application/json', required

## Request body

- SetCurrentTree
  - `trees` object[], required: Array containing the tree ID to set as current.
    - `id` string, required: The ID of the tree to set as current. Use 'GLOBAL' for the FamilySearch public/global tree, or provide a user tree ID. To find user tree IDs, see <a href="/reference/getgroups" target="_blank">Read User's Groups</a>, or <a href="/reference/createtree" target="_blank">Create Tree</a> to create a new user tree.

## Response `204`

Successfully set the id of the current tree

## Other responses

- `429`: The request was throttled.

---

[API](https://skmtc.dev/familysearch/apis/user-tree-endpoints.md) - [All operations](https://skmtc.dev/familysearch/apis/user-tree-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/familysearch/apis/user-tree-endpoints/revisions/8ae07006966b?raw)
