Vai al contenuto
Tutti gli strumenti

m365_update_contact

Microsoft 365 · macOS · Windows

Effetto: scrittura. Stato: disponibilità condizionata.

«Disponibilità condizionata» indica che lo strumento può dipendere da versione, piattaforma, autorizzazioni, account o configurazione. Non è necessariamente attivo ovunque.

macOS

Scopo

Da usare quando l'utente vuole modificare un contatto dei suoi contatti Microsoft 365 / Outlook: cambiano solo i campi indicati (e-mail e telefoni sostituiscono l'intero elenco). Ottieni l'id da m365_list_contacts o m365_search_contacts. Richiede l'account collegato con scopes_for: ["contacts"].

Input obbligatori

I nomi restano esattamente quelli richiesti dallo strumento. Le definizioni tecniche canoniche in inglese sono nello schema espandibile qui sotto.

Autorizzazioni e conferma

Lo schema dichiara un parametro di conferma esplicito. Controlla l’anteprima e autorizza l’operazione reale secondo il contratto della piattaforma.

Schema tecnico canonico in inglese — 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"
}

Esempio documentale

Esempio di documentazione per m365_update_contact. Non eseguire questo esempio. Gli argomenti mostrati appartengono a un set di dati fittizio; individua gli identificatori reali e ottieni l’autorizzazione prima di una chiamata reale.

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

Windows

Scopo

Modifica i campi di un contatto Microsoft 365: cambiano solo i campi indicati, gli altri restano. `id` da m365_list_contacts o m365_search_contacts. Il campo previous della risposta contiene i campi modificati com'erano, per ripristinarli.

Input obbligatori

I nomi restano esattamente quelli richiesti dallo strumento. Le definizioni tecniche canoniche in inglese sono nello schema espandibile qui sotto.

Autorizzazioni e conferma

Lo schema dichiara un parametro di conferma esplicito. Controlla l’anteprima e autorizza l’operazione reale secondo il contratto della piattaforma.

Schema tecnico canonico in inglese — 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"
}

Esempio documentale

Esempio di documentazione per m365_update_contact. Non eseguire questo esempio. Gli argomenti mostrati appartengono a un set di dati fittizio; individua gli identificatori reali e ottieni l’autorizzazione prima di una chiamata reale.

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