Customers

Update a Contact

Partially update Contact attributes (not including associated entities)

patch/contacts/public/{contactId}

Request

Path parameters

contactIdinteger required

The customer id

The integer idenfier of a Contact, assigned automatically by Paperless Parts

Request body

account_idinteger nullable

the ID of the associated Account

emailstring

email address (must be non-null, unique across all Contacts, and a valid email format)

first_namestring

Contact first name (must be non-null)

last_namestring

Contact last name (must be non-null)

notesstring nullable

Contact notes

phonestring nullable

Customer phone number

phone_extstring nullable

Customer phone number extension

Example request

{
  "account_id": 137,
  "address": {
    "address1": "137 Portland St.",
    "address2": "Unit 1",
    "city": "Boston",
    "country": "USA",
    "postal_code": "02114",
    "state": "MA"
  },
  "email": "careers@paperlessparts.com",
  "first_name": "Gordon",
  "last_name": "Moore",
  "phone": "6176354500",
  "salesperson": {
    "email": "careers@paperlessparts.com"
  }
}

Response

Successful response

account_idinteger nullable

The ID of the associated account

createdstring
emailstring

(Required) email address (must be non-null, unique across all Customers, and a valid email format)

first_namestring

(Required) Customer first name (must be non-null)

idinteger
last_namestring

(Required) Customer last name (must be non-null)

notesstring nullable

Customer notes

phonestring nullable

Customer phone number

phone_extstring nullable

Customer phone number extension

country_codestring nullable
metadataobject nullable

Example response

{
  "address": {
    "address1": "1 City Hall Sq.",
    "city": "Boston",
    "state": "MA",
    "postal_code": "02114",
    "country": "USA",
    "erp_code": "B1234"
  },
  "account_id": 17,
  "created": "2020-08-25T18:00:53+00:00",
  "email": "careers@paperlessparts.com",
  "first_name": "Gordon",
  "id": 137,
  "last_name": "Moore",
  "phone": "6176354500"
}

Changes

No recorded changes to this operation across all 1 revision of this API.