resourcepack.ai
DOCS

Generating

Change a movement group

Renames a group, or sets which emote plays in each state. parts, when sent, is the whole map: a state left out goes back to the player's own animation. Leave parts out to keep them as they are.

POST/packs/{pack}/emote-groups/{group}

Path parameters

packstringrequired

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

groupstringrequired

The group's id.

Body

namestringmax 64 characters

A new name.

partsobject

The whole map of state to emote id.

idlestring

The emote played while idle.

walkstring

The emote played while walk.

sprintstring

The emote played while sprint.

sneak_idlestring

The emote played while sneak idle.

sneak_movestring

The emote played while sneak move.

jumpstring

The emote played while jump.

Response · 200

Saved.

idstringrequired

The group's id. Also its job handle's last part, and what /emote takes.

typestringrequired

Always emote_group.

namestringrequired

Its name.

partsobjectrequired

State to emote id, as saved.

idlestring

The emote played while idle.

walkstring

The emote played while walk.

sprintstring

The emote played while sprint.

sneak_idlestring

The emote played while sneak idle.

sneak_movestring

The emote played while sneak move.

jumpstring

The emote played while jump.

packstringrequired

The pack it is in.

ignoredarray of string

States you named whose emote could not be a member. Absent when none.

Error codes

Branch on error.code, never on the message.

invalid_json400

The request body wasn't a JSON object.

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.