Improve your Skyline experience
You're using a browser that skyline.benevity.org does not support. Try Chrome, Edge, Safari or Firefox for a better experience.

# Update a Contact

Once the contact is created using the services, then the user may be able to update the contact properties using the PATCH /locations/contacts/{contactId} endpoint.

# Building your request

Ensure that you authenticate the request with the JWT you've previously obtained, by passing the JWT as an Authorization header.

Great, let's update an existing contact! All that you have to do now, is to tell us to process the request. To do so, we will call the PATCH /locations/contacts/{contactId}} endpoint.

This endpoint requires some additional information, such as:

Contact attributes:

  • firstName - First name of the Contact.
  • lastName - Last name of the Contact.
  • emailAddress - Email address of the Contact. This must be a unique and valid email address, not used by another contact.

# Sample request:

In our example, we're going to be updating contact with a new emailaddress.

# Sample response:

{
  "data": {
    "type": "contact",
    "id": "1009902487177527296",
    "attributes": {
      "firstName": "FirstName",
      "lastName": "LastName",
      "emailAddress": "first.lastnames@test.com"
    }
  }
}

# 🚀 ☀️ ⭐️ Congratulations! ⭐️ ☀️ 🚀

You have now updated an existing contact and received the response, to help your users drive further goodness in the world!