resourcepack.ai
DOCS

Packs

Publish an asset to the gallery

Puts one of the pack's assets on resourcepack.ai/gallery, as the Publish to gallery button on its page does: a snapshot of it as it is now, on a page of its own. Addressed by the listing's type and name. One live page per asset: publishing it again answers conflict.

Leave out title, description or tags and the gallery writes them, as the button's Write it for me does, from the asset's picture and prompt; send them to use your own. anonymous publishes it without your name on it. Only the pack's owner can publish. Free.

POST/packs/{pack}/gallery

Path parameters

packstringrequired

The pack's slug, as returned by the packs endpoints.

Body

typestringrequired

The asset's type from the listing (item, icon, model…).

namestringrequired

The asset's name from the listing.

titlestring3–80 characters

The page's title. Written for you when left out.

descriptionstring20–600 characters

A sentence or two about it. Written for you when left out.

tagsarray of string

Search tags. Written for you when left out.

anonymousboolean

Publish it without your name on it. Defaults to false.

Response · 201

Published.

packstringrequired

The pack.

slugstringrequired

The page's slug.

urlstringrequired

The page.

titlestringrequired

The title as published.

descriptionstringrequired

The description as published.

tagsarray of stringrequired

The tags as published.

anonymousbooleanrequired

Whether it carries your name.

Error codes

Branch on error.code, never on the message.

invalid_request400

Something in the body or query is wrong. message says what.

invalid_api_key401

The key isn't one of ours, or it has been revoked.

missing_api_key401

No Authorization: Bearer header was sent.

wrong_key_kind401

An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.

account_suspended403

The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.

forbidden403

Valid key, but not permitted to do this in this pack.

plan_required403

The key is valid, but its account's plan does not include the API.

not_found404

No such pack, asset or job.

conflict409

That vanilla target is already reskinned in this pack. Change it in the Studio rather than overwriting it.