Collections

Update collection metadata

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

patch/v1/collections/{id}

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/collections/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Request body

namestring

New display name.

contextstring

Updated brand or product context.

slugstring

CDN slug for this collection. Used in the public URL path: https://assets.masko.ai/:user_prefix/:slug/... Globally unique across all collections. Normalized server-side: lowercased, non-alphanumeric stripped (hyphens kept), trimmed. After normalization must be 2 to 50 characters. Returns 409 if taken.

configobject

Raw config object merged into existing config. Advanced use only: prefer dedicated endpoints /references and /settings; set slug with PATCH /v1/collections/:id.

Response

Updated collection

Changes

No recorded changes to this operation across all 1 revision of this API.