resourcepack.ai
DOCS

Packs

Duplicate an asset

A copy of an asset in the same pack, under a new name: the right-click menu's Duplicate. Free, but it is a new asset, so it counts against the pack's asset limit. Something a pack can hold only one of (a vanilla block or item reskin, a HUD, an armour set) answers skipped with the reason rather than an error.

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

Path parameters

packstringrequired

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

kindstringrequired

The asset's kind from the listing, or emote.

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

namestringrequired

The asset's name from the listing.

Response · 200

What happened to it.

packstringrequired

The pack.

resultobjectrequired

The copy.

typestringrequired

What the asset is.

idstringrequired

Its id in the pack it came from.

statusstringrequired

transferred when it went, skipped when it could not (see reason), failed when something went wrong.

Options: transferred, skipped, failed

newIdstringrequired

What it is called where it landed: usually its own id, the next free one when that was taken. Null unless transferred.

reasonstringrequired

Why it didn't go, completing "Couldn't move it: ...". Null when it did.

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.

asset_limit_reached403

The pack is at its asset limit.

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.