---
title: "POST /scripts/visibility"
method: POST
path: "/scripts/visibility"
tags: ["scripts"]
---

# POST /scripts/visibility

`POST /scripts/visibility`

Updates the visibility of a script.

## Headers

- `X-Phantombuster-Org` string

## Request body

- object
  - `name` string, required — Name of the script to change visibility for.
  - `branch` string, required — Name of the branch to change visibility for.
  - `visibility` 'private' | 'semi public' | 'public' | 'semi open source' | 'open source', required — New branch visibility.

## Response `200`

Script visibility successfully updated.

## Other responses

- `400` — Script or branch not found.
- `412` — Script does not exist in the specified branch.

---

[API](https://skmtc.net/phantombuster/apis/phantombuster-api-v2.md) · [All operations](https://skmtc.net/phantombuster/apis/phantombuster-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phantombuster/phantombuster-api-v2/versions/acf0049d7c7f/schema)
