Patch a macro — name, type, command, scope, image or folder; omitted fields stay unchanged. **`folder_id` is tri-state** (same pattern as folders.parent_id): - omit both `folder_id` and `clear_folder` → don't touch the folder - `folder_id: "abc"` → move into that folder (folder ID, NOT name) - `clear_folder: true` → move to root (Foundry: folder=null) Cross-field rule: setting BOTH `folder_id` and `clear_folder: true` returns 422. Script macros (the macro is, or becomes, `type: script`) need the module setting **Allow Script Macros** (409 otherwise).
GamesBrowserIndieAI-GeneratedFree
Properties
Name
Type
Description
clear_folder
boolean
Move the macro to the root. Mutually exclusive with `folder_id`. Default false.
command
string
folder_id
string
New folder ID (NOT name). Mutually exclusive with `clear_folder: true`.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.