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

# /v1/scripts/:id

`POST /v1/scripts/{id}`

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.net/rebrandly/apis/rebrandly-legacy.md) · [All operations](https://skmtc.net/rebrandly/apis/rebrandly-legacy/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rebrandly/rebrandly-legacy/revisions/edc8d2ea0d88/schema)
