---
title: "Create Or Update Script"
method: POST
path: "/scripts/{script_name}"
tags: ["Scripts"]
---

# Create Or Update Script

`POST /scripts/{script_name}`

Create or update a script.

Args:
    script_name: Name of the script (from URL path)
    script: Script object with content
    
Returns:
    Success message when script is saved
    
Raises:
    HTTPException: 400 if save error occurs

## Path parameters

- `script_name` string, required

## Request body

- Script — Script file content
  - `content` string, required — Script source code

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.net/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
