resourcepack.ai
DOCS

Packs

Change a model's settings

The model page's Placed behaviour (stopsVehicles: whether a placed copy blocks a vehicle driving into it, on by default) and Convert to vehicle (type). Converting back to a model keeps the vehicle's settings, so converting again brings them back; a vehicle's own settings are set_vehicle. A 3D item's geometry can't be converted. Free.

POST/packs/{pack}/models/{model}

Path parameters

packstringrequired

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

modelstringrequired

The model's name from the asset listing.

Body

stopsVehiclesboolean

Whether a placed copy stops a vehicle.

typestring

Make it a vehicle, or a plain model again.

Options: model, vehicle

Response · 200

Saved. The model as it now stands.

packstringrequired

The pack.

modelobjectrequired

The model.

idstringrequired

The model's id, its name in the asset listing.

typestringrequired

What it is.

Options: model, vehicle, mob, item3d, item_model

stopsVehiclesbooleanrequired

Whether a placed copy stops a vehicle.

animationsarray of stringrequired

Its animations' names.

statusstringrequired

generating, ready or error.

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's plan does not include the API.

not_found404

No such pack, asset or job.