# Update a Project matchmaking application file metadata

`projects.update_matchmaking_answer_file`

Change an uploaded file's filename in a Project matchmaking application, preserving its file id and original bytes. List files first; pass the exact file id and latest answers_revision. A filename change does not convert the document's format. List files again to verify.

[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": {
      "minimum": 0,
      "type": "integer"
    },
    "file_id": {
      "description": "Stable file id returned by the answer-file list or upload operation.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "filename": {
      "description": "New filename including the existing format's extension; not a path.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "idempotency_key": {
      "format": "uuid",
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "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",
    "idempotency_key",
    "file_id",
    "filename"
  ],
  "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"
        },
        "file": {
          "additionalProperties": false,
          "properties": {
            "block_key": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "filename": {
              "type": "string"
            },
            "id": {
              "description": "Stable file id returned by the answer-file list or upload operation.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "item_id": {
              "anyOf": [
                {
                  "description": "Stable item_id returned by the repeatable-item list or create operation.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Stable item_id returned by the repeatable-item list or create operation."
            },
            "object": {
              "const": "answer_file",
              "type": "string"
            },
            "size_bytes": {
              "minimum": 1,
              "type": "integer"
            },
            "uploaded_at": {
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "id",
            "object",
            "block_key",
            "item_id",
            "filename",
            "size_bytes",
            "uploaded_at"
          ],
          "type": "object"
        },
        "resource": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "object": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "object"
          ],
          "type": "object"
        }
      },
      "required": [
        "resource",
        "answers_revision",
        "affected_section_keys",
        "file"
      ],
      "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.
