---
title: "Update mascot metadata"
method: PATCH
path: "/v1/mascots/{id}"
tags: ["Mascots"]
---

# Update mascot metadata

`PATCH /v1/mascots/{id}`

## Request

- Base URL: `https://api.masko.ai`
- URL: `https://api.masko.ai/v1/mascots/{id}`
- Auth: HTTP bearer

Updates a mascot name, prompt, or public slug. Returns { updated: true }. Returns 404 if not found or not owned by the caller. No credit cost.

## Path parameters

- `id` string, uuid, required

## Request body

- StudioUpdateMascotBody
  - `name` string: New display name.
  - `context` string: Updated brand or product context.
  - `slug` string: CDN slug for this mascot. Used in the public URL path: https://assets.masko.ai/:user_prefix/:slug/... Globally unique across all mascots. Normalized server-side: lowercased, non-alphanumeric stripped (hyphens kept), trimmed. After normalization must be 2 to 50 characters. Returns 409 if taken.
  - `config` object: Raw config object merged into existing config. Advanced use only: prefer dedicated endpoints /references and /settings; set slug with PATCH /v1/collections/:id.

## Response `200`

Updated mascot

- UpdatedFlagResponse
  - `data` UpdatedFlag, required
    - `updated` boolean, required
    - `slug` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict

---

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