---
title: "Polish a script with a given style."
method: POST
path: "/api/v1/scripts/{script_id}/polish"
tags: ["Scripts"]
---

# Polish a script with a given style.

`POST /api/v1/scripts/{script_id}/polish`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/scripts/{script_id}/polish`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Path parameters

- `script_id` integer, required

## Request body

- PolishBody
  - `apply` boolean
  - `style` string

## Response `200`

OK

- ServiceResponse

## Other responses

- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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