---
title: "/v1/scripts/:id"
method: POST
path: "/v1/scripts/{id}"
tags: ["Scripts"]
---

# /v1/scripts/:id

`POST /v1/scripts/{id}`

## Request

- Base URL: `https://api.rebrandly.com`
- URL: `https://api.rebrandly.com/v1/scripts/{id}`
- Auth: API key in header `apikey`

Update a script

## Path parameters

- `id` string, required

## Headers

- `workspace` string

## Request body

- ScriptUpdateRequest
  - `name` string, required: The new name you want to associated to the script
  - `value` string, required: A new javascript snippet (including <script> and </script> HTML tags) to replace the old one

## Response `200`

200

- Script
  - `id` string
  - `name` string
  - `uri` string

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-legacy.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-legacy/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-legacy/revisions/edc8d2ea0d88?raw)
