foundplay-io · Schema

UpdateMacroRequest

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`.
img string
name string
scope string Macro scope — see MacroScope.
type string Macro type — see MacroType.
View JSON Schema on GitHub

JSON Schema

foundplay-io-update-macro-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foundplay-io/json-schema/foundplay-io-update-macro-request-schema.json",
  "title": "UpdateMacroRequest",
  "description": "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):\n\n- omit both `folder_id` and `clear_folder` → don't touch the folder\n- `folder_id: \"abc\"` → move into that folder (folder ID, NOT name)\n- `clear_folder: true` → move to root (Foundry: folder=null)\n\nCross-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).",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foundplay-io-openapi.json#/components/schemas/UpdateMacroRequest",
  "properties": {
    "clear_folder": {
      "default": false,
      "description": "Move the macro to the root. Mutually exclusive with `folder_id`. Default false.",
      "type": "boolean"
    },
    "command": {
      "minLength": 1,
      "type": "string"
    },
    "folder_id": {
      "description": "New folder ID (NOT name). Mutually exclusive with `clear_folder: true`.",
      "minLength": 1,
      "type": "string"
    },
    "img": {
      "minLength": 1,
      "type": "string"
    },
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "scope": {
      "description": "Macro scope — see MacroScope.",
      "enum": [
        "global",
        "actors",
        "actor"
      ],
      "type": "string"
    },
    "type": {
      "description": "Macro type — see MacroType.",
      "enum": [
        "chat",
        "script"
      ],
      "type": "string"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/foundplay-io-update-macro-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.