resourcepack.ai
DOCS

Packs

Duplicate a pack

A new pack holding a copy of every asset in this one, under a new slug: the Studio's Duplicate. Read the new slug from the response. Free, but it is a pack like any other, so it counts against the plan's pack limit. Owner or team admin only.

POST/packs/{pack}/duplicate

Path parameters

packstringrequired

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

Response · 201

The copy.

packobjectrequired

The new pack.

slugstringrequired

The pack's id. Every other path takes this.

namestringrequired

Its display name.

minecraftVersionstringrequired

The version the pack is authored against.

rolestringrequired

Whether this key's owner owns the pack or was added to it.

Options: owner, collaborator

descriptionstringrequired

What Minecraft shows under the pack's name. Null when none is set.

creditSourcestringrequired

Whose AI Credits a generation in it spends: the owner's, or whoever asked for it. A team pack is paid by the team either way.

Options: owner, prompter

hasIconbooleanrequired

Whether the pack has an icon of its own.

createdAtstringrequired

ISO 8601.

updatedAtstringrequired

ISO 8601.

assetCountsobjectrequired

How much the pack holds, by kind.

texturesintegerrequired

Block textures, item sprites and GUI sheets.

modelsintegerrequired

3D models.

iconsintegerrequired

Font glyphs.

soundsintegerrequired

Sound events.

Error codes

Branch on error.code, never on the message.

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.

pack_limit_reached403

The account is at its plan's pack limit.

plan_required403

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

not_found404

No such pack, asset or job.