---
title: "Update Tree Person Published State"
method: POST
path: "/tree/persons/{pid}/published"
tags: ["Persons"]
---

# Update Tree Person Published State

`POST /tree/persons/{pid}/published`

## Request

- Base URL: `https://apibeta.familysearch.org/platform`
- URL: `https://apibeta.familysearch.org/platform/tree/persons/{pid}/published`
- Auth: HTTP bearer

Publish or unpublish a person. Send `published=false` to unpublish the person or `published=true` to publish it again.  An optional reason for the change may be sent in the 'X-Reason' header. There is no request body. Read the person to see the current state, reported as the `published` attribute of its `PersonInfo`.

## Path parameters

- `pid` string, required

## Query parameters

- `published` boolean, required

## Headers

- `X-Reason` string

## Response `204`

The update was successful.

## Other responses

- `403`: The current user may not modify the resource.
- `404`: The requested resource was not found.
- `410`: The requested resource has been deleted.
- `429`: The request was throttled.

---

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