本文へスキップ
すべてのツール

m365_update_contact

Microsoft 365 · macOS · Windows

効果: 書き込み. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

macOS

目的

ユーザーが Microsoft 365 / Outlook の連絡先を変更したいときに使います。指定した項目だけが変更されます(メールアドレスと電話番号は一覧全体が置き換わります)。id は m365_list_contacts または m365_search_contacts から取得してください。scopes_for: ["contacts"] で接続したアカウントが必要です。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — macOS
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "company": {
      "description": "Company.",
      "type": "string"
    },
    "confirm": {
      "description": "Ignored; kept for older clients.",
      "type": "boolean"
    },
    "emails": {
      "description": "Up to 3 e-mail addresses; replaces the contact's list.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "given_name": {
      "description": "First name.",
      "type": "string"
    },
    "id": {
      "description": "Contact ID from m365_list_contacts or m365_search_contacts",
      "type": "string"
    },
    "mobile": {
      "description": "Mobile phone.",
      "type": "string"
    },
    "name": {
      "description": "The name shown for the contact (default: first and last name).",
      "type": "string"
    },
    "notes": {
      "description": "Notes.",
      "type": "string"
    },
    "phones": {
      "description": "Up to 2 business phones; replaces the contact's list.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "surname": {
      "description": "Last name.",
      "type": "string"
    },
    "title": {
      "description": "Job title.",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}

ドキュメント例

m365_update_contact のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "confirm": false,
  "id": "AAMkAGdemo-contact-1",
  "title": "Project lead"
}

Windows

目的

Microsoft 365 の連絡先の項目を変更します。指定した項目だけが変更され、それ以外はそのまま残ります。`id` は m365_list_contacts または m365_search_contacts から取得します。応答の previous には、変更された項目の変更前の値が入っており、元に戻すのに使えます。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — Windows
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "company": {
      "description": "Company",
      "type": "string"
    },
    "confirm": {
      "description": "Ignored; kept for older clients.",
      "type": "boolean"
    },
    "emails": {
      "description": "Email addresses (at most 3)",
      "items": {
        "type": "string"
      },
      "maxItems": 3,
      "type": "array"
    },
    "given_name": {
      "description": "First name",
      "type": "string"
    },
    "id": {
      "description": "Contact ID from m365_list_contacts or m365_search_contacts",
      "type": "string"
    },
    "mobile": {
      "description": "Mobile phone",
      "type": "string"
    },
    "notes": {
      "description": "Notes",
      "type": "string"
    },
    "phones": {
      "description": "Business phones",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "surname": {
      "description": "Last name",
      "type": "string"
    },
    "title": {
      "description": "Job title",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}

ドキュメント例

m365_update_contact のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "confirm": false,
  "id": "AAMkAGdemo-contact-1",
  "title": "Project lead"
}