Documentation Center

Update CRM data

Use the updateTYPE GraphQL mutation to modify existing CRM entities.

Example request

The first sample code block illustrates a request to update details for a Contact entity. The second code block illustrates the corresponding response with a confirmation of the entity's identity and the updated Contact details.

mutation {
  updateContact(
    identity: {
      namespace: "salesforce"
      id:" 0033Y00002pvAjuQAE"
      type: "Contact"
    }
    input: {
      phone: "+44111222333"
    } )
  {
    identity {
      namespace
      id
      type
    }
    phone
  }
}

Example response

The second code block illustrates the corresponding response with a confirmation of the entity's identity and the updated Contact details.

{
  "data": {
    "updateContact": {
      "identity": {
        "namespace": "salesforce",
        "id": "0033Y00002pvAjuQAE",
        "type": "Contact"
      },
      "phone": "+44111222333"
    }
  }
}