Skip to Content

update_group

Edit one choice question (from list_groups), as the app's question editor does: rename it (label), switch kind (single = pick one, multi = pick several), set max (multi only: answer up to N; null = no limit), replace its options (2-200 tick boxes on this document, each { field_id, label, value }: value is what the box stamps; a box moves out of any other question, and a question left with one box is dropped), set other_field_id (a plain text box filled when the client picks Other; null detaches it), or confirmed: true to settle a flagged question as checked.

destructiveSends, cancels or emails people. Clients ask you before running it.

What it does

Edit one choice question (from list_groups), as the app's question editor does: rename it (label), switch kind (single = pick one, multi = pick several), set max (multi only: answer up to N; null = no limit), replace its options (2-200 tick boxes on this document, each { field_id, label, value }: value is what the box stamps; a box moves out of any other question, and a question left with one box is dropped), set other_field_id (a plain text box filled when the client picks Other; null detaches it), or confirmed: true to settle a flagged question as checked. Send only what changes. Any edit makes the question the person's own (source manual). Returns the question as list_groups shows it. Skip rules on the question are edited with set_form_rules.

Inputs

NameTypeDescription
document_idrequiredstringThe document's id.
group_idrequiredstringThe question's id, from list_groups.Up to 64 characters
labelstringUp to 300 characters
kindstringOne of: single, multi
maxinteger | nullMulti only: the most answers allowed; null = no limit.1 to 200
optionsobject[]The question's whole option list, in order.2 to 200 items
field_idrequiredstringA tick box on this document (list_fields).Up to 64 characters
labelrequiredstringWhat the client sees.Up to 200 characters
valuerequiredstringWhat the box stamps.Up to 120 characters
confirmedtruetrue marks a flagged question as checked by a person.
other_field_idstring | nullA text box to use as the question's Other box; null detaches it.Up to 64 characters

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_group",
    "arguments": {
      "document_id": "<document_id>",
      "group_id": "<group_id>"
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "document_id": {
      "type": "string",
      "description": "The document's id."
    },
    "group_id": {
      "type": "string",
      "maxLength": 64,
      "description": "The question's id, from list_groups."
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "kind": {
      "type": "string",
      "enum": [
        "single",
        "multi"
      ]
    },
    "max": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 200,
      "description": "Multi only: the most answers allowed; null = no limit."
    },
    "options": {
      "type": "array",
      "minItems": 2,
      "maxItems": 200,
      "description": "The question's whole option list, in order.",
      "items": {
        "type": "object",
        "properties": {
          "field_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "A tick box on this document (list_fields)."
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "What the client sees."
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "What the box stamps."
          }
        },
        "required": [
          "field_id",
          "label",
          "value"
        ]
      }
    },
    "confirmed": {
      "type": "boolean",
      "const": true,
      "description": "true marks a flagged question as checked by a person."
    },
    "other_field_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 64,
      "description": "A text box to use as the question's Other box; null detaches it."
    }
  },
  "required": [
    "document_id",
    "group_id"
  ]
}

On this page