resourcepack.ai
DOCS

Packs

Rename an asset

Changes an asset's label, the name the Studio shows for it. Addressed exactly as a download is, by the listing's kind and name. Its id never changes, so nothing that points at it breaks.

A block and a 2D armour set are named by the vanilla thing they reskin, and a part (block_face, model_texture, item_model) by the asset it belongs to, so neither has a label to change. Free.

POST/packs/{pack}/assets/{kind}/{name}/rename

Path parameters

packstringrequired

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

kindstringrequired

The asset's kind from the listing.

Options: texture, model, font, sound, shader, vfx, emote, emote_group

namestringrequired

The asset's name from the listing.

Body

displayNamestringrequiredmax 50 characters

The new label.

Response · 200

Renamed.

packstringrequired

The pack.

kindstringrequired

The kind you addressed it by.

namestringrequired

The name you addressed it by, unchanged.

typestringrequired

What it is.

displayNamestringrequired

The label as stored.

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 is on Starter. The API needs a paid plan.

not_found404

No such pack, asset or job.