View as Markdown

Edit a Saved Person

PATCH/v2/people/{id}/edits

Sets or clears your workspace's own first name, last name, email and phone for a person it saved; every People answer then serves them to your workspace in place of ours. A string sets the field, null or an empty string clears it (our data shows again), an absent key leaves it alone. Costs no credits and is not rate limited. 404 NOT_SAVED when the workspace has not saved the person.

Path parameters

  • idstringrequired

    The GetProspect person id.

    Example: "64f1a2b3c4d5e6f7a8b9c0d1"

Body parameters

  • first_namestringoptionalmax length: 100

    First name to show instead of ours.

    Example
    {
      "first_name": "Em"
    }
  • last_namestringoptionalmax length: 100

    Last name to show instead of ours.

  • emailstringoptional

    An email address; stored lower-cased.

    Example
    {
      "email": "emily@example.com"
    }
  • phonestringoptional

    3-40 characters of digits, spaces and + ( ) - . with at least one digit.

Responses

  • 200 The person's edits after this patch ({} once every field is cleared).
  • 400 Invalid request (VALIDATION_ERROR): a field of the wrong type or format (payload.field names it), an id that is not a person id, or a body with no field.
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 404 Your workspace has not saved this person (NOT_SAVED).
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.