# Create or edit Business note

`businesses.upsert_note`

Create a private note on this Business when note_id is null, or replace the complete content of the selected note. Read businesses.list_notes first before editing an existing note. This does not contact the client or change application data. Reuse client_request_id only for an identical retry.

[Businesses guide](https://docs.levr.ai/mcp/resources/businesses.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": {
    "business_id": {
      "description": "Copy id from businesses.list.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "client_request_id": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "note_id": {
      "anyOf": [
        {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Copy note id (bnote_) from businesses.list_notes; null creates a note."
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "rich_text": {
      "description": "HTML or plain text; Markdown formatting is not converted.",
      "maxLength": 50000,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "business_id",
    "note_id",
    "rich_text",
    "client_request_id"
  ],
  "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": {
        "note": {
          "additionalProperties": false,
          "properties": {
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "created_by": {
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "is_pinned": {
              "type": "boolean"
            },
            "plain_text": {
              "type": "string"
            },
            "resource_id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "resource_kind": {
              "enum": [
                "business",
                "project",
                "deal"
              ],
              "type": "string"
            },
            "rich_text": {
              "type": "string"
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "id",
            "resource_kind",
            "resource_id",
            "rich_text",
            "plain_text",
            "is_pinned",
            "created_by",
            "created_at",
            "updated_at"
          ],
          "type": "object"
        }
      },
      "required": [
        "note"
      ],
      "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.
