m365_update_contact
Microsoft 365 · macOS · Windows
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
当用户想更改其 Microsoft 365 / Outlook 联系人中的某个联系人时使用:只有给出的字段会更改(电子邮件和电话会替换整个列表)。id 来自 m365_list_contacts 或 m365_search_contacts。需要以 scopes_for: ["contacts"] 连接的账户。
必填输入
id
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — 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 保存着被更改字段的原值,以便还原。
必填输入
id
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — 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"
}