# Update matchmaking application answers

`projects.update_matchmaking_application_answers`

Update answers used for this Project's recipient matching. Read the answers first and pass their answers_revision so newer changes are not overwritten.

[Matchmaking guide](https://docs.levr.ai/mcp/resources/matchmaking.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "expected_answers_revision": {
      "description": "Answer revision returned by the latest answer read.",
      "minimum": 0,
      "type": "integer"
    },
    "idempotency_key": {
      "description": "Stable retry identity. Reuse only for identical input.",
      "format": "uuid",
      "type": "string"
    },
    "provider_slug": {
      "description": "Portal workspace that owns the matching application. Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "updates": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "block_key": {
            "description": "block_key returned by the answer read.",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "field_key": {
            "description": "field_key returned by the answer read.",
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "maxLength": 10000,
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "items": {
                  "anyOf": [
                    {
                      "maxLength": 1000,
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "maxItems": 100,
                "type": "array"
              }
            ],
            "description": "Replacement answer value."
          }
        },
        "required": [
          "block_key",
          "field_key",
          "value"
        ],
        "type": "object"
      },
      "maxItems": 50,
      "minItems": 1,
      "type": "array"
    },
    "workspace_slug": {
      "description": "Matching workspace: copy workspace_slug (mmw_) from projects.get or projects.list; not project_slug.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "workspace_slug",
    "expected_answers_revision",
    "updates",
    "idempotency_key"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "affected_section_keys": {
          "items": {
            "description": "Stable public identifier for the referenced resource.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "answers_revision": {
          "minimum": 0,
          "type": "integer"
        },
        "mutation_kind": {
          "const": "update_answers"
        },
        "updated_answers": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "block_key": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "field_key": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "schema_key": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "maxLength": 10000,
                    "type": "string"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "items": {
                      "anyOf": [
                        {
                          "maxLength": 1000,
                          "type": "string"
                        },
                        {
                          "type": "integer"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    },
                    "maxItems": 100,
                    "type": "array"
                  }
                ]
              }
            },
            "required": [
              "block_key",
              "schema_key",
              "field_key",
              "value"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "workspace_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "workspace_slug",
        "answers_revision",
        "mutation_kind",
        "affected_section_keys",
        "updated_answers"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
