---
title: "Save Script Endpoint"
method: POST
path: "/script/save"
tags: ["script"]
---

# Save Script Endpoint

`POST /script/save`

## Request

- Base URL: `https://api.framesail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.framesail.com/script/save`
- Auth: HTTP bearer

## Request body

- SaveScriptRequest
  - `project_id` string, required
  - `content` string, required

## Response `200`

Successful Response

- SaveScriptResponse
  - `script_id` string, required
  - `version` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/framesail/apis/framesail-api.md) · [All operations](https://skmtc.dev/framesail/apis/framesail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/framesail/apis/framesail-api/revisions/12602eae0820?raw)
