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

# POST /scripts/access-list

`POST /scripts/access-list`

Updates the access list of a script.

## Headers

- `X-Phantombuster-Org` string

## Request body

- object
  - `name` string, required — Name of the script to update the access list of.
  - `branch` string, required — Name of the branch to update the access list of.
  - `add` union — Org or user to add in the access list.
    - string
    - string
  - `remove` string — Org or user to remove from the access list.

## Response `200`

Access list 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)
