Update a contact
curl --request PUT \
--url https://api.smokeball.com/contacts/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"externalSystemId": "EXT01",
"person": {
"title": "Mr",
"firstName": "John",
"middleName": "Michael",
"lastName": "Smith",
"nameSuffix": "PhD",
"customName": "Johnny",
"otherNames": "<string>",
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"phone": {
"areaCode": "555",
"number": "1234567"
},
"phone2": {
"areaCode": "555",
"number": "1234567",
"extension": "103"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"cell": {
"areaCode": "555",
"number": "1234567"
},
"email": "john.smith@brown.com",
"notes": "Prefers to answer work phone.",
"occupation": "Bookkeeper",
"birthDate": "1980-07-01",
"birthPlace": "Chicago",
"birthState": "Illinois",
"birthCountry": "Australia",
"identificationNumberType": "SSN",
"identificationNumber": "PP123456789",
"passportDetails": {
"passportNumber": "AB123456",
"passportIssueDate": "2010-08-01",
"passportExpireDate": "2030-08-01",
"passportIssueCountry": "USA",
"passportIssueAuthority": "HM Passport Office"
},
"deathDetails": {
"deathDate": "2020-08-01",
"isDeathDateUnknown": false,
"deathDateFrom": "2020-08-01",
"deathDateTo": "2020-08-01",
"deathPlace": "Chicago",
"deathState": "IL",
"deathCountry": "USA",
"deathCounty": "San Bernardino County"
},
"gender": "Male",
"maritalStatus": "Single",
"specialNeeds": "Wheelchair access",
"birthFirstName": "James",
"birthMiddleName": "Thomas",
"birthLastName": "Jones",
"previousNames": "Jane Smith",
"correctionsReferenceNumber": "<string>",
"centrelinkReferenceNumber": "<string>",
"identificationDetails": {
"alienNumber": "<string>",
"registrationAuthority": "<string>",
"registrationNumber": "<string>",
"driversLicenseNumber": "<string>",
"driversLicenseState": "<string>",
"medicareNumber": "<string>"
},
"citizenshipDetails": {
"countryOfCitizenship": "USA",
"nationality": "American",
"languageOfInterpreter": "French"
},
"utbmsDetails": {
"ledesClientId": "<string>"
},
"executionOptions": {
"poaType": "Enduring",
"poaDate": "2023-05-15",
"attorneyName": "Jane Doe",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"poaRegisteredBook": "<string>",
"poaRegisteredNumber": "<string>",
"executionType": "PowerOfAttorney"
}
},
"company": {
"name": "Brown LLC",
"type": "Corporation",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"email": "contact@brown.com",
"website": "https://www.brownllc.com",
"notes": "Recently merged with Cyberdyne Inc.",
"businessAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
},
"dxAddress": {
"number": "<string>",
"exchange": "<string>",
"state": "<string>"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"abn": "1234567890",
"ein": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"stateId": "<string>",
"stateRegisteredIn": "<string>",
"countryRegisteredIn": "<string>",
"branch": "<string>",
"registeredAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"firmIsRegisteredAgent": true,
"companyNumberType": "ACN",
"companyNumber": "234567890",
"doingBusinessAsName": "Brown Holdings",
"tradingAs": "Trading As",
"tradingName": "Brown Trading Co",
"staffIds": [
"73481c13-b7f8-4610-b221-aaccbf7aaade",
"18cd6029-4a9e-4b99-bae5-710a7d79a19b"
],
"directorIds": [
"73481c13-b7f8-4610-b221-aaccbf7aaade",
"18cd6029-4a9e-4b99-bae5-710a7d79a19b"
],
"executionOptions": {
"person1": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"person2": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"executingUnder127": true,
"executingAuthority": "<string>",
"sealType": "WithSeal",
"authorisedDepositTakingInstitution": true,
"poaRegistrationNumber": "<string>",
"attorneyNames": [
"John Smith",
"Jane Doe"
],
"executionType": "JointDirectors"
}
},
"trust": {
"name": "Trinity Trust",
"status": "as Trustee of",
"trustNumber": "12345678",
"executedDate": "1980-07-01",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"trustees": [
{
"Name": "John Smith",
"Type": "Individual"
},
{
"Name": "Smithfield Steel",
"Type": "Company"
}
]
},
"groupOfPeople": {
"peopleIds": [
"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8"
],
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
}
},
"isDeleted": false
}
'import requests
url = "https://api.smokeball.com/contacts/{id}"
payload = {
"externalSystemId": "EXT01",
"person": {
"title": "Mr",
"firstName": "John",
"middleName": "Michael",
"lastName": "Smith",
"nameSuffix": "PhD",
"customName": "Johnny",
"otherNames": "<string>",
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"phone": {
"areaCode": "555",
"number": "1234567"
},
"phone2": {
"areaCode": "555",
"number": "1234567",
"extension": "103"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"cell": {
"areaCode": "555",
"number": "1234567"
},
"email": "john.smith@brown.com",
"notes": "Prefers to answer work phone.",
"occupation": "Bookkeeper",
"birthDate": "1980-07-01",
"birthPlace": "Chicago",
"birthState": "Illinois",
"birthCountry": "Australia",
"identificationNumberType": "SSN",
"identificationNumber": "PP123456789",
"passportDetails": {
"passportNumber": "AB123456",
"passportIssueDate": "2010-08-01",
"passportExpireDate": "2030-08-01",
"passportIssueCountry": "USA",
"passportIssueAuthority": "HM Passport Office"
},
"deathDetails": {
"deathDate": "2020-08-01",
"isDeathDateUnknown": False,
"deathDateFrom": "2020-08-01",
"deathDateTo": "2020-08-01",
"deathPlace": "Chicago",
"deathState": "IL",
"deathCountry": "USA",
"deathCounty": "San Bernardino County"
},
"gender": "Male",
"maritalStatus": "Single",
"specialNeeds": "Wheelchair access",
"birthFirstName": "James",
"birthMiddleName": "Thomas",
"birthLastName": "Jones",
"previousNames": "Jane Smith",
"correctionsReferenceNumber": "<string>",
"centrelinkReferenceNumber": "<string>",
"identificationDetails": {
"alienNumber": "<string>",
"registrationAuthority": "<string>",
"registrationNumber": "<string>",
"driversLicenseNumber": "<string>",
"driversLicenseState": "<string>",
"medicareNumber": "<string>"
},
"citizenshipDetails": {
"countryOfCitizenship": "USA",
"nationality": "American",
"languageOfInterpreter": "French"
},
"utbmsDetails": { "ledesClientId": "<string>" },
"executionOptions": {
"poaType": "Enduring",
"poaDate": "2023-05-15",
"attorneyName": "Jane Doe",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"poaRegisteredBook": "<string>",
"poaRegisteredNumber": "<string>",
"executionType": "PowerOfAttorney"
}
},
"company": {
"name": "Brown LLC",
"type": "Corporation",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"email": "contact@brown.com",
"website": "https://www.brownllc.com",
"notes": "Recently merged with Cyberdyne Inc.",
"businessAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
},
"dxAddress": {
"number": "<string>",
"exchange": "<string>",
"state": "<string>"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"abn": "1234567890",
"ein": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"stateId": "<string>",
"stateRegisteredIn": "<string>",
"countryRegisteredIn": "<string>",
"branch": "<string>",
"registeredAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"firmIsRegisteredAgent": True,
"companyNumberType": "ACN",
"companyNumber": "234567890",
"doingBusinessAsName": "Brown Holdings",
"tradingAs": "Trading As",
"tradingName": "Brown Trading Co",
"staffIds": ["73481c13-b7f8-4610-b221-aaccbf7aaade", "18cd6029-4a9e-4b99-bae5-710a7d79a19b"],
"directorIds": ["73481c13-b7f8-4610-b221-aaccbf7aaade", "18cd6029-4a9e-4b99-bae5-710a7d79a19b"],
"executionOptions": {
"person1": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"person2": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"executingUnder127": True,
"executingAuthority": "<string>",
"sealType": "WithSeal",
"authorisedDepositTakingInstitution": True,
"poaRegistrationNumber": "<string>",
"attorneyNames": ["John Smith", "Jane Doe"],
"executionType": "JointDirectors"
}
},
"trust": {
"name": "Trinity Trust",
"status": "as Trustee of",
"trustNumber": "12345678",
"executedDate": "1980-07-01",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"trustees": [
{
"Name": "John Smith",
"Type": "Individual"
},
{
"Name": "Smithfield Steel",
"Type": "Company"
}
]
},
"groupOfPeople": {
"peopleIds": ["b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2", "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8"],
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
}
},
"isDeleted": False
}
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-api-key': '<api-key>',
Authorization: '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify({
externalSystemId: 'EXT01',
person: {
title: 'Mr',
firstName: 'John',
middleName: 'Michael',
lastName: 'Smith',
nameSuffix: 'PhD',
customName: 'Johnny',
otherNames: '<string>',
residentialAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
phone: {areaCode: '555', number: '1234567'},
phone2: {areaCode: '555', number: '1234567', extension: '103'},
fax: {areaCode: '555', number: '1234567'},
cell: {areaCode: '555', number: '1234567'},
email: 'john.smith@brown.com',
notes: 'Prefers to answer work phone.',
occupation: 'Bookkeeper',
birthDate: '1980-07-01',
birthPlace: 'Chicago',
birthState: 'Illinois',
birthCountry: 'Australia',
identificationNumberType: 'SSN',
identificationNumber: 'PP123456789',
passportDetails: {
passportNumber: 'AB123456',
passportIssueDate: '2010-08-01',
passportExpireDate: '2030-08-01',
passportIssueCountry: 'USA',
passportIssueAuthority: 'HM Passport Office'
},
deathDetails: {
deathDate: '2020-08-01',
isDeathDateUnknown: false,
deathDateFrom: '2020-08-01',
deathDateTo: '2020-08-01',
deathPlace: 'Chicago',
deathState: 'IL',
deathCountry: 'USA',
deathCounty: 'San Bernardino County'
},
gender: 'Male',
maritalStatus: 'Single',
specialNeeds: 'Wheelchair access',
birthFirstName: 'James',
birthMiddleName: 'Thomas',
birthLastName: 'Jones',
previousNames: 'Jane Smith',
correctionsReferenceNumber: '<string>',
centrelinkReferenceNumber: '<string>',
identificationDetails: {
alienNumber: '<string>',
registrationAuthority: '<string>',
registrationNumber: '<string>',
driversLicenseNumber: '<string>',
driversLicenseState: '<string>',
medicareNumber: '<string>'
},
citizenshipDetails: {
countryOfCitizenship: 'USA',
nationality: 'American',
languageOfInterpreter: 'French'
},
utbmsDetails: {ledesClientId: '<string>'},
executionOptions: {
poaType: 'Enduring',
poaDate: '2023-05-15',
attorneyName: 'Jane Doe',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
poaRegisteredBook: '<string>',
poaRegisteredNumber: '<string>',
executionType: 'PowerOfAttorney'
}
},
company: {
name: 'Brown LLC',
type: 'Corporation',
phone: {areaCode: '555', number: '1234567'},
fax: {areaCode: '555', number: '1234567'},
email: 'contact@brown.com',
website: 'https://www.brownllc.com',
notes: 'Recently merged with Cyberdyne Inc.',
businessAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
},
dxAddress: {number: '<string>', exchange: '<string>', state: '<string>'}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
abn: '1234567890',
ein: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
stateId: '<string>',
stateRegisteredIn: '<string>',
countryRegisteredIn: '<string>',
branch: '<string>',
registeredAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
firmIsRegisteredAgent: true,
companyNumberType: 'ACN',
companyNumber: '234567890',
doingBusinessAsName: 'Brown Holdings',
tradingAs: 'Trading As',
tradingName: 'Brown Trading Co',
staffIds: ['73481c13-b7f8-4610-b221-aaccbf7aaade', '18cd6029-4a9e-4b99-bae5-710a7d79a19b'],
directorIds: ['73481c13-b7f8-4610-b221-aaccbf7aaade', '18cd6029-4a9e-4b99-bae5-710a7d79a19b'],
executionOptions: {
person1: {
name: 'John Smith',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
personType: 'Director',
selectedOfficeHeld: 'Director'
},
person2: {
name: 'John Smith',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
personType: 'Director',
selectedOfficeHeld: 'Director'
},
executingUnder127: true,
executingAuthority: '<string>',
sealType: 'WithSeal',
authorisedDepositTakingInstitution: true,
poaRegistrationNumber: '<string>',
attorneyNames: ['John Smith', 'Jane Doe'],
executionType: 'JointDirectors'
}
},
trust: {
name: 'Trinity Trust',
status: 'as Trustee of',
trustNumber: '12345678',
executedDate: '1980-07-01',
phone: {areaCode: '555', number: '1234567'},
fax: {areaCode: '555', number: '1234567'},
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
trustees: [
{Name: 'John Smith', Type: 'Individual'},
{Name: 'Smithfield Steel', Type: 'Company'}
]
},
groupOfPeople: {
peopleIds: ['b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2', '750eb5c5-ac0b-7d11-4997-e0ce9d8896c8'],
residentialAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
}
},
isDeleted: false
})
};
fetch('https://api.smokeball.com/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'externalSystemId' => 'EXT01',
'person' => [
'title' => 'Mr',
'firstName' => 'John',
'middleName' => 'Michael',
'lastName' => 'Smith',
'nameSuffix' => 'PhD',
'customName' => 'Johnny',
'otherNames' => '<string>',
'residentialAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'phone2' => [
'areaCode' => '555',
'number' => '1234567',
'extension' => '103'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'cell' => [
'areaCode' => '555',
'number' => '1234567'
],
'email' => 'john.smith@brown.com',
'notes' => 'Prefers to answer work phone.',
'occupation' => 'Bookkeeper',
'birthDate' => '1980-07-01',
'birthPlace' => 'Chicago',
'birthState' => 'Illinois',
'birthCountry' => 'Australia',
'identificationNumberType' => 'SSN',
'identificationNumber' => 'PP123456789',
'passportDetails' => [
'passportNumber' => 'AB123456',
'passportIssueDate' => '2010-08-01',
'passportExpireDate' => '2030-08-01',
'passportIssueCountry' => 'USA',
'passportIssueAuthority' => 'HM Passport Office'
],
'deathDetails' => [
'deathDate' => '2020-08-01',
'isDeathDateUnknown' => false,
'deathDateFrom' => '2020-08-01',
'deathDateTo' => '2020-08-01',
'deathPlace' => 'Chicago',
'deathState' => 'IL',
'deathCountry' => 'USA',
'deathCounty' => 'San Bernardino County'
],
'gender' => 'Male',
'maritalStatus' => 'Single',
'specialNeeds' => 'Wheelchair access',
'birthFirstName' => 'James',
'birthMiddleName' => 'Thomas',
'birthLastName' => 'Jones',
'previousNames' => 'Jane Smith',
'correctionsReferenceNumber' => '<string>',
'centrelinkReferenceNumber' => '<string>',
'identificationDetails' => [
'alienNumber' => '<string>',
'registrationAuthority' => '<string>',
'registrationNumber' => '<string>',
'driversLicenseNumber' => '<string>',
'driversLicenseState' => '<string>',
'medicareNumber' => '<string>'
],
'citizenshipDetails' => [
'countryOfCitizenship' => 'USA',
'nationality' => 'American',
'languageOfInterpreter' => 'French'
],
'utbmsDetails' => [
'ledesClientId' => '<string>'
],
'executionOptions' => [
'poaType' => 'Enduring',
'poaDate' => '2023-05-15',
'attorneyName' => 'Jane Doe',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'poaRegisteredBook' => '<string>',
'poaRegisteredNumber' => '<string>',
'executionType' => 'PowerOfAttorney'
]
],
'company' => [
'name' => 'Brown LLC',
'type' => 'Corporation',
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'email' => 'contact@brown.com',
'website' => 'https://www.brownllc.com',
'notes' => 'Recently merged with Cyberdyne Inc.',
'businessAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
],
'dxAddress' => [
'number' => '<string>',
'exchange' => '<string>',
'state' => '<string>'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'abn' => '1234567890',
'ein' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'stateId' => '<string>',
'stateRegisteredIn' => '<string>',
'countryRegisteredIn' => '<string>',
'branch' => '<string>',
'registeredAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'firmIsRegisteredAgent' => true,
'companyNumberType' => 'ACN',
'companyNumber' => '234567890',
'doingBusinessAsName' => 'Brown Holdings',
'tradingAs' => 'Trading As',
'tradingName' => 'Brown Trading Co',
'staffIds' => [
'73481c13-b7f8-4610-b221-aaccbf7aaade',
'18cd6029-4a9e-4b99-bae5-710a7d79a19b'
],
'directorIds' => [
'73481c13-b7f8-4610-b221-aaccbf7aaade',
'18cd6029-4a9e-4b99-bae5-710a7d79a19b'
],
'executionOptions' => [
'person1' => [
'name' => 'John Smith',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'personType' => 'Director',
'selectedOfficeHeld' => 'Director'
],
'person2' => [
'name' => 'John Smith',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'personType' => 'Director',
'selectedOfficeHeld' => 'Director'
],
'executingUnder127' => true,
'executingAuthority' => '<string>',
'sealType' => 'WithSeal',
'authorisedDepositTakingInstitution' => true,
'poaRegistrationNumber' => '<string>',
'attorneyNames' => [
'John Smith',
'Jane Doe'
],
'executionType' => 'JointDirectors'
]
],
'trust' => [
'name' => 'Trinity Trust',
'status' => 'as Trustee of',
'trustNumber' => '12345678',
'executedDate' => '1980-07-01',
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'trustees' => [
[
'Name' => 'John Smith',
'Type' => 'Individual'
],
[
'Name' => 'Smithfield Steel',
'Type' => 'Company'
]
]
],
'groupOfPeople' => [
'peopleIds' => [
'b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2',
'750eb5c5-ac0b-7d11-4997-e0ce9d8896c8'
],
'residentialAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
]
],
'isDeleted' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json-patch+json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/contacts/{id}"
payload := strings.NewReader("{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.smokeball.com/contacts/{id}")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Contacts
Update a contact
Updates a specified contact.
PUT
/
contacts
/
{id}
Update a contact
curl --request PUT \
--url https://api.smokeball.com/contacts/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"externalSystemId": "EXT01",
"person": {
"title": "Mr",
"firstName": "John",
"middleName": "Michael",
"lastName": "Smith",
"nameSuffix": "PhD",
"customName": "Johnny",
"otherNames": "<string>",
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"phone": {
"areaCode": "555",
"number": "1234567"
},
"phone2": {
"areaCode": "555",
"number": "1234567",
"extension": "103"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"cell": {
"areaCode": "555",
"number": "1234567"
},
"email": "john.smith@brown.com",
"notes": "Prefers to answer work phone.",
"occupation": "Bookkeeper",
"birthDate": "1980-07-01",
"birthPlace": "Chicago",
"birthState": "Illinois",
"birthCountry": "Australia",
"identificationNumberType": "SSN",
"identificationNumber": "PP123456789",
"passportDetails": {
"passportNumber": "AB123456",
"passportIssueDate": "2010-08-01",
"passportExpireDate": "2030-08-01",
"passportIssueCountry": "USA",
"passportIssueAuthority": "HM Passport Office"
},
"deathDetails": {
"deathDate": "2020-08-01",
"isDeathDateUnknown": false,
"deathDateFrom": "2020-08-01",
"deathDateTo": "2020-08-01",
"deathPlace": "Chicago",
"deathState": "IL",
"deathCountry": "USA",
"deathCounty": "San Bernardino County"
},
"gender": "Male",
"maritalStatus": "Single",
"specialNeeds": "Wheelchair access",
"birthFirstName": "James",
"birthMiddleName": "Thomas",
"birthLastName": "Jones",
"previousNames": "Jane Smith",
"correctionsReferenceNumber": "<string>",
"centrelinkReferenceNumber": "<string>",
"identificationDetails": {
"alienNumber": "<string>",
"registrationAuthority": "<string>",
"registrationNumber": "<string>",
"driversLicenseNumber": "<string>",
"driversLicenseState": "<string>",
"medicareNumber": "<string>"
},
"citizenshipDetails": {
"countryOfCitizenship": "USA",
"nationality": "American",
"languageOfInterpreter": "French"
},
"utbmsDetails": {
"ledesClientId": "<string>"
},
"executionOptions": {
"poaType": "Enduring",
"poaDate": "2023-05-15",
"attorneyName": "Jane Doe",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"poaRegisteredBook": "<string>",
"poaRegisteredNumber": "<string>",
"executionType": "PowerOfAttorney"
}
},
"company": {
"name": "Brown LLC",
"type": "Corporation",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"email": "contact@brown.com",
"website": "https://www.brownllc.com",
"notes": "Recently merged with Cyberdyne Inc.",
"businessAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
},
"dxAddress": {
"number": "<string>",
"exchange": "<string>",
"state": "<string>"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"abn": "1234567890",
"ein": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"stateId": "<string>",
"stateRegisteredIn": "<string>",
"countryRegisteredIn": "<string>",
"branch": "<string>",
"registeredAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"firmIsRegisteredAgent": true,
"companyNumberType": "ACN",
"companyNumber": "234567890",
"doingBusinessAsName": "Brown Holdings",
"tradingAs": "Trading As",
"tradingName": "Brown Trading Co",
"staffIds": [
"73481c13-b7f8-4610-b221-aaccbf7aaade",
"18cd6029-4a9e-4b99-bae5-710a7d79a19b"
],
"directorIds": [
"73481c13-b7f8-4610-b221-aaccbf7aaade",
"18cd6029-4a9e-4b99-bae5-710a7d79a19b"
],
"executionOptions": {
"person1": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"person2": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"executingUnder127": true,
"executingAuthority": "<string>",
"sealType": "WithSeal",
"authorisedDepositTakingInstitution": true,
"poaRegistrationNumber": "<string>",
"attorneyNames": [
"John Smith",
"Jane Doe"
],
"executionType": "JointDirectors"
}
},
"trust": {
"name": "Trinity Trust",
"status": "as Trustee of",
"trustNumber": "12345678",
"executedDate": "1980-07-01",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"trustees": [
{
"Name": "John Smith",
"Type": "Individual"
},
{
"Name": "Smithfield Steel",
"Type": "Company"
}
]
},
"groupOfPeople": {
"peopleIds": [
"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8"
],
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
}
},
"isDeleted": false
}
'import requests
url = "https://api.smokeball.com/contacts/{id}"
payload = {
"externalSystemId": "EXT01",
"person": {
"title": "Mr",
"firstName": "John",
"middleName": "Michael",
"lastName": "Smith",
"nameSuffix": "PhD",
"customName": "Johnny",
"otherNames": "<string>",
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"phone": {
"areaCode": "555",
"number": "1234567"
},
"phone2": {
"areaCode": "555",
"number": "1234567",
"extension": "103"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"cell": {
"areaCode": "555",
"number": "1234567"
},
"email": "john.smith@brown.com",
"notes": "Prefers to answer work phone.",
"occupation": "Bookkeeper",
"birthDate": "1980-07-01",
"birthPlace": "Chicago",
"birthState": "Illinois",
"birthCountry": "Australia",
"identificationNumberType": "SSN",
"identificationNumber": "PP123456789",
"passportDetails": {
"passportNumber": "AB123456",
"passportIssueDate": "2010-08-01",
"passportExpireDate": "2030-08-01",
"passportIssueCountry": "USA",
"passportIssueAuthority": "HM Passport Office"
},
"deathDetails": {
"deathDate": "2020-08-01",
"isDeathDateUnknown": False,
"deathDateFrom": "2020-08-01",
"deathDateTo": "2020-08-01",
"deathPlace": "Chicago",
"deathState": "IL",
"deathCountry": "USA",
"deathCounty": "San Bernardino County"
},
"gender": "Male",
"maritalStatus": "Single",
"specialNeeds": "Wheelchair access",
"birthFirstName": "James",
"birthMiddleName": "Thomas",
"birthLastName": "Jones",
"previousNames": "Jane Smith",
"correctionsReferenceNumber": "<string>",
"centrelinkReferenceNumber": "<string>",
"identificationDetails": {
"alienNumber": "<string>",
"registrationAuthority": "<string>",
"registrationNumber": "<string>",
"driversLicenseNumber": "<string>",
"driversLicenseState": "<string>",
"medicareNumber": "<string>"
},
"citizenshipDetails": {
"countryOfCitizenship": "USA",
"nationality": "American",
"languageOfInterpreter": "French"
},
"utbmsDetails": { "ledesClientId": "<string>" },
"executionOptions": {
"poaType": "Enduring",
"poaDate": "2023-05-15",
"attorneyName": "Jane Doe",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"poaRegisteredBook": "<string>",
"poaRegisteredNumber": "<string>",
"executionType": "PowerOfAttorney"
}
},
"company": {
"name": "Brown LLC",
"type": "Corporation",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"email": "contact@brown.com",
"website": "https://www.brownllc.com",
"notes": "Recently merged with Cyberdyne Inc.",
"businessAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
},
"dxAddress": {
"number": "<string>",
"exchange": "<string>",
"state": "<string>"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"abn": "1234567890",
"ein": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"stateId": "<string>",
"stateRegisteredIn": "<string>",
"countryRegisteredIn": "<string>",
"branch": "<string>",
"registeredAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"firmIsRegisteredAgent": True,
"companyNumberType": "ACN",
"companyNumber": "234567890",
"doingBusinessAsName": "Brown Holdings",
"tradingAs": "Trading As",
"tradingName": "Brown Trading Co",
"staffIds": ["73481c13-b7f8-4610-b221-aaccbf7aaade", "18cd6029-4a9e-4b99-bae5-710a7d79a19b"],
"directorIds": ["73481c13-b7f8-4610-b221-aaccbf7aaade", "18cd6029-4a9e-4b99-bae5-710a7d79a19b"],
"executionOptions": {
"person1": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"person2": {
"name": "John Smith",
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"personType": "Director",
"selectedOfficeHeld": "Director"
},
"executingUnder127": True,
"executingAuthority": "<string>",
"sealType": "WithSeal",
"authorisedDepositTakingInstitution": True,
"poaRegistrationNumber": "<string>",
"attorneyNames": ["John Smith", "Jane Doe"],
"executionType": "JointDirectors"
}
},
"trust": {
"name": "Trinity Trust",
"status": "as Trustee of",
"trustNumber": "12345678",
"executedDate": "1980-07-01",
"phone": {
"areaCode": "555",
"number": "1234567"
},
"fax": {
"areaCode": "555",
"number": "1234567"
},
"address": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"trustees": [
{
"Name": "John Smith",
"Type": "Individual"
},
{
"Name": "Smithfield Steel",
"Type": "Company"
}
]
},
"groupOfPeople": {
"peopleIds": ["b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2", "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8"],
"residentialAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
},
"mailingAddress": {
"careOf": "John Smith",
"buildingLevel": "Level 1",
"unitNumber": "10",
"unitType": "Suite",
"streetNumber": "100",
"streetName": "Broad",
"streetType": "Street",
"addressLine1": "Level 1/10",
"addressLine2": "100 Broad Street",
"city": "Chicago",
"state": "IL",
"zipCode": "60606",
"locality": "Dunkirk",
"county": "New York",
"country": "United States",
"poBox": {
"careOf": "John Smith",
"poBoxType": "Locked Bag",
"poBoxNumber": "12345",
"city": "Chicago",
"state": "IL",
"zipCode": "60606"
}
}
},
"isDeleted": False
}
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-api-key': '<api-key>',
Authorization: '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify({
externalSystemId: 'EXT01',
person: {
title: 'Mr',
firstName: 'John',
middleName: 'Michael',
lastName: 'Smith',
nameSuffix: 'PhD',
customName: 'Johnny',
otherNames: '<string>',
residentialAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
phone: {areaCode: '555', number: '1234567'},
phone2: {areaCode: '555', number: '1234567', extension: '103'},
fax: {areaCode: '555', number: '1234567'},
cell: {areaCode: '555', number: '1234567'},
email: 'john.smith@brown.com',
notes: 'Prefers to answer work phone.',
occupation: 'Bookkeeper',
birthDate: '1980-07-01',
birthPlace: 'Chicago',
birthState: 'Illinois',
birthCountry: 'Australia',
identificationNumberType: 'SSN',
identificationNumber: 'PP123456789',
passportDetails: {
passportNumber: 'AB123456',
passportIssueDate: '2010-08-01',
passportExpireDate: '2030-08-01',
passportIssueCountry: 'USA',
passportIssueAuthority: 'HM Passport Office'
},
deathDetails: {
deathDate: '2020-08-01',
isDeathDateUnknown: false,
deathDateFrom: '2020-08-01',
deathDateTo: '2020-08-01',
deathPlace: 'Chicago',
deathState: 'IL',
deathCountry: 'USA',
deathCounty: 'San Bernardino County'
},
gender: 'Male',
maritalStatus: 'Single',
specialNeeds: 'Wheelchair access',
birthFirstName: 'James',
birthMiddleName: 'Thomas',
birthLastName: 'Jones',
previousNames: 'Jane Smith',
correctionsReferenceNumber: '<string>',
centrelinkReferenceNumber: '<string>',
identificationDetails: {
alienNumber: '<string>',
registrationAuthority: '<string>',
registrationNumber: '<string>',
driversLicenseNumber: '<string>',
driversLicenseState: '<string>',
medicareNumber: '<string>'
},
citizenshipDetails: {
countryOfCitizenship: 'USA',
nationality: 'American',
languageOfInterpreter: 'French'
},
utbmsDetails: {ledesClientId: '<string>'},
executionOptions: {
poaType: 'Enduring',
poaDate: '2023-05-15',
attorneyName: 'Jane Doe',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
poaRegisteredBook: '<string>',
poaRegisteredNumber: '<string>',
executionType: 'PowerOfAttorney'
}
},
company: {
name: 'Brown LLC',
type: 'Corporation',
phone: {areaCode: '555', number: '1234567'},
fax: {areaCode: '555', number: '1234567'},
email: 'contact@brown.com',
website: 'https://www.brownllc.com',
notes: 'Recently merged with Cyberdyne Inc.',
businessAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
},
dxAddress: {number: '<string>', exchange: '<string>', state: '<string>'}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
abn: '1234567890',
ein: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
stateId: '<string>',
stateRegisteredIn: '<string>',
countryRegisteredIn: '<string>',
branch: '<string>',
registeredAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
firmIsRegisteredAgent: true,
companyNumberType: 'ACN',
companyNumber: '234567890',
doingBusinessAsName: 'Brown Holdings',
tradingAs: 'Trading As',
tradingName: 'Brown Trading Co',
staffIds: ['73481c13-b7f8-4610-b221-aaccbf7aaade', '18cd6029-4a9e-4b99-bae5-710a7d79a19b'],
directorIds: ['73481c13-b7f8-4610-b221-aaccbf7aaade', '18cd6029-4a9e-4b99-bae5-710a7d79a19b'],
executionOptions: {
person1: {
name: 'John Smith',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
personType: 'Director',
selectedOfficeHeld: 'Director'
},
person2: {
name: 'John Smith',
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
personType: 'Director',
selectedOfficeHeld: 'Director'
},
executingUnder127: true,
executingAuthority: '<string>',
sealType: 'WithSeal',
authorisedDepositTakingInstitution: true,
poaRegistrationNumber: '<string>',
attorneyNames: ['John Smith', 'Jane Doe'],
executionType: 'JointDirectors'
}
},
trust: {
name: 'Trinity Trust',
status: 'as Trustee of',
trustNumber: '12345678',
executedDate: '1980-07-01',
phone: {areaCode: '555', number: '1234567'},
fax: {areaCode: '555', number: '1234567'},
address: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
trustees: [
{Name: 'John Smith', Type: 'Individual'},
{Name: 'Smithfield Steel', Type: 'Company'}
]
},
groupOfPeople: {
peopleIds: ['b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2', '750eb5c5-ac0b-7d11-4997-e0ce9d8896c8'],
residentialAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
},
mailingAddress: {
careOf: 'John Smith',
buildingLevel: 'Level 1',
unitNumber: '10',
unitType: 'Suite',
streetNumber: '100',
streetName: 'Broad',
streetType: 'Street',
addressLine1: 'Level 1/10',
addressLine2: '100 Broad Street',
city: 'Chicago',
state: 'IL',
zipCode: '60606',
locality: 'Dunkirk',
county: 'New York',
country: 'United States',
poBox: {
careOf: 'John Smith',
poBoxType: 'Locked Bag',
poBoxNumber: '12345',
city: 'Chicago',
state: 'IL',
zipCode: '60606'
}
}
},
isDeleted: false
})
};
fetch('https://api.smokeball.com/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'externalSystemId' => 'EXT01',
'person' => [
'title' => 'Mr',
'firstName' => 'John',
'middleName' => 'Michael',
'lastName' => 'Smith',
'nameSuffix' => 'PhD',
'customName' => 'Johnny',
'otherNames' => '<string>',
'residentialAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'phone2' => [
'areaCode' => '555',
'number' => '1234567',
'extension' => '103'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'cell' => [
'areaCode' => '555',
'number' => '1234567'
],
'email' => 'john.smith@brown.com',
'notes' => 'Prefers to answer work phone.',
'occupation' => 'Bookkeeper',
'birthDate' => '1980-07-01',
'birthPlace' => 'Chicago',
'birthState' => 'Illinois',
'birthCountry' => 'Australia',
'identificationNumberType' => 'SSN',
'identificationNumber' => 'PP123456789',
'passportDetails' => [
'passportNumber' => 'AB123456',
'passportIssueDate' => '2010-08-01',
'passportExpireDate' => '2030-08-01',
'passportIssueCountry' => 'USA',
'passportIssueAuthority' => 'HM Passport Office'
],
'deathDetails' => [
'deathDate' => '2020-08-01',
'isDeathDateUnknown' => false,
'deathDateFrom' => '2020-08-01',
'deathDateTo' => '2020-08-01',
'deathPlace' => 'Chicago',
'deathState' => 'IL',
'deathCountry' => 'USA',
'deathCounty' => 'San Bernardino County'
],
'gender' => 'Male',
'maritalStatus' => 'Single',
'specialNeeds' => 'Wheelchair access',
'birthFirstName' => 'James',
'birthMiddleName' => 'Thomas',
'birthLastName' => 'Jones',
'previousNames' => 'Jane Smith',
'correctionsReferenceNumber' => '<string>',
'centrelinkReferenceNumber' => '<string>',
'identificationDetails' => [
'alienNumber' => '<string>',
'registrationAuthority' => '<string>',
'registrationNumber' => '<string>',
'driversLicenseNumber' => '<string>',
'driversLicenseState' => '<string>',
'medicareNumber' => '<string>'
],
'citizenshipDetails' => [
'countryOfCitizenship' => 'USA',
'nationality' => 'American',
'languageOfInterpreter' => 'French'
],
'utbmsDetails' => [
'ledesClientId' => '<string>'
],
'executionOptions' => [
'poaType' => 'Enduring',
'poaDate' => '2023-05-15',
'attorneyName' => 'Jane Doe',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'poaRegisteredBook' => '<string>',
'poaRegisteredNumber' => '<string>',
'executionType' => 'PowerOfAttorney'
]
],
'company' => [
'name' => 'Brown LLC',
'type' => 'Corporation',
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'email' => 'contact@brown.com',
'website' => 'https://www.brownllc.com',
'notes' => 'Recently merged with Cyberdyne Inc.',
'businessAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
],
'dxAddress' => [
'number' => '<string>',
'exchange' => '<string>',
'state' => '<string>'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'abn' => '1234567890',
'ein' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'stateId' => '<string>',
'stateRegisteredIn' => '<string>',
'countryRegisteredIn' => '<string>',
'branch' => '<string>',
'registeredAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'firmIsRegisteredAgent' => true,
'companyNumberType' => 'ACN',
'companyNumber' => '234567890',
'doingBusinessAsName' => 'Brown Holdings',
'tradingAs' => 'Trading As',
'tradingName' => 'Brown Trading Co',
'staffIds' => [
'73481c13-b7f8-4610-b221-aaccbf7aaade',
'18cd6029-4a9e-4b99-bae5-710a7d79a19b'
],
'directorIds' => [
'73481c13-b7f8-4610-b221-aaccbf7aaade',
'18cd6029-4a9e-4b99-bae5-710a7d79a19b'
],
'executionOptions' => [
'person1' => [
'name' => 'John Smith',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'personType' => 'Director',
'selectedOfficeHeld' => 'Director'
],
'person2' => [
'name' => 'John Smith',
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'personType' => 'Director',
'selectedOfficeHeld' => 'Director'
],
'executingUnder127' => true,
'executingAuthority' => '<string>',
'sealType' => 'WithSeal',
'authorisedDepositTakingInstitution' => true,
'poaRegistrationNumber' => '<string>',
'attorneyNames' => [
'John Smith',
'Jane Doe'
],
'executionType' => 'JointDirectors'
]
],
'trust' => [
'name' => 'Trinity Trust',
'status' => 'as Trustee of',
'trustNumber' => '12345678',
'executedDate' => '1980-07-01',
'phone' => [
'areaCode' => '555',
'number' => '1234567'
],
'fax' => [
'areaCode' => '555',
'number' => '1234567'
],
'address' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'trustees' => [
[
'Name' => 'John Smith',
'Type' => 'Individual'
],
[
'Name' => 'Smithfield Steel',
'Type' => 'Company'
]
]
],
'groupOfPeople' => [
'peopleIds' => [
'b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2',
'750eb5c5-ac0b-7d11-4997-e0ce9d8896c8'
],
'residentialAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
],
'mailingAddress' => [
'careOf' => 'John Smith',
'buildingLevel' => 'Level 1',
'unitNumber' => '10',
'unitType' => 'Suite',
'streetNumber' => '100',
'streetName' => 'Broad',
'streetType' => 'Street',
'addressLine1' => 'Level 1/10',
'addressLine2' => '100 Broad Street',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606',
'locality' => 'Dunkirk',
'county' => 'New York',
'country' => 'United States',
'poBox' => [
'careOf' => 'John Smith',
'poBoxType' => 'Locked Bag',
'poBoxNumber' => '12345',
'city' => 'Chicago',
'state' => 'IL',
'zipCode' => '60606'
]
]
],
'isDeleted' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json-patch+json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/contacts/{id}"
payload := strings.NewReader("{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.smokeball.com/contacts/{id}")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"externalSystemId\": \"EXT01\",\n \"person\": {\n \"title\": \"Mr\",\n \"firstName\": \"John\",\n \"middleName\": \"Michael\",\n \"lastName\": \"Smith\",\n \"nameSuffix\": \"PhD\",\n \"customName\": \"Johnny\",\n \"otherNames\": \"<string>\",\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"phone2\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\",\n \"extension\": \"103\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"cell\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"john.smith@brown.com\",\n \"notes\": \"Prefers to answer work phone.\",\n \"occupation\": \"Bookkeeper\",\n \"birthDate\": \"1980-07-01\",\n \"birthPlace\": \"Chicago\",\n \"birthState\": \"Illinois\",\n \"birthCountry\": \"Australia\",\n \"identificationNumberType\": \"SSN\",\n \"identificationNumber\": \"PP123456789\",\n \"passportDetails\": {\n \"passportNumber\": \"AB123456\",\n \"passportIssueDate\": \"2010-08-01\",\n \"passportExpireDate\": \"2030-08-01\",\n \"passportIssueCountry\": \"USA\",\n \"passportIssueAuthority\": \"HM Passport Office\"\n },\n \"deathDetails\": {\n \"deathDate\": \"2020-08-01\",\n \"isDeathDateUnknown\": false,\n \"deathDateFrom\": \"2020-08-01\",\n \"deathDateTo\": \"2020-08-01\",\n \"deathPlace\": \"Chicago\",\n \"deathState\": \"IL\",\n \"deathCountry\": \"USA\",\n \"deathCounty\": \"San Bernardino County\"\n },\n \"gender\": \"Male\",\n \"maritalStatus\": \"Single\",\n \"specialNeeds\": \"Wheelchair access\",\n \"birthFirstName\": \"James\",\n \"birthMiddleName\": \"Thomas\",\n \"birthLastName\": \"Jones\",\n \"previousNames\": \"Jane Smith\",\n \"correctionsReferenceNumber\": \"<string>\",\n \"centrelinkReferenceNumber\": \"<string>\",\n \"identificationDetails\": {\n \"alienNumber\": \"<string>\",\n \"registrationAuthority\": \"<string>\",\n \"registrationNumber\": \"<string>\",\n \"driversLicenseNumber\": \"<string>\",\n \"driversLicenseState\": \"<string>\",\n \"medicareNumber\": \"<string>\"\n },\n \"citizenshipDetails\": {\n \"countryOfCitizenship\": \"USA\",\n \"nationality\": \"American\",\n \"languageOfInterpreter\": \"French\"\n },\n \"utbmsDetails\": {\n \"ledesClientId\": \"<string>\"\n },\n \"executionOptions\": {\n \"poaType\": \"Enduring\",\n \"poaDate\": \"2023-05-15\",\n \"attorneyName\": \"Jane Doe\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"poaRegisteredBook\": \"<string>\",\n \"poaRegisteredNumber\": \"<string>\",\n \"executionType\": \"PowerOfAttorney\"\n }\n },\n \"company\": {\n \"name\": \"Brown LLC\",\n \"type\": \"Corporation\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"email\": \"contact@brown.com\",\n \"website\": \"https://www.brownllc.com\",\n \"notes\": \"Recently merged with Cyberdyne Inc.\",\n \"businessAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n },\n \"dxAddress\": {\n \"number\": \"<string>\",\n \"exchange\": \"<string>\",\n \"state\": \"<string>\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"abn\": \"1234567890\",\n \"ein\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"stateId\": \"<string>\",\n \"stateRegisteredIn\": \"<string>\",\n \"countryRegisteredIn\": \"<string>\",\n \"branch\": \"<string>\",\n \"registeredAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"firmIsRegisteredAgent\": true,\n \"companyNumberType\": \"ACN\",\n \"companyNumber\": \"234567890\",\n \"doingBusinessAsName\": \"Brown Holdings\",\n \"tradingAs\": \"Trading As\",\n \"tradingName\": \"Brown Trading Co\",\n \"staffIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"directorIds\": [\n \"73481c13-b7f8-4610-b221-aaccbf7aaade\",\n \"18cd6029-4a9e-4b99-bae5-710a7d79a19b\"\n ],\n \"executionOptions\": {\n \"person1\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"person2\": {\n \"name\": \"John Smith\",\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"personType\": \"Director\",\n \"selectedOfficeHeld\": \"Director\"\n },\n \"executingUnder127\": true,\n \"executingAuthority\": \"<string>\",\n \"sealType\": \"WithSeal\",\n \"authorisedDepositTakingInstitution\": true,\n \"poaRegistrationNumber\": \"<string>\",\n \"attorneyNames\": [\n \"John Smith\",\n \"Jane Doe\"\n ],\n \"executionType\": \"JointDirectors\"\n }\n },\n \"trust\": {\n \"name\": \"Trinity Trust\",\n \"status\": \"as Trustee of\",\n \"trustNumber\": \"12345678\",\n \"executedDate\": \"1980-07-01\",\n \"phone\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"fax\": {\n \"areaCode\": \"555\",\n \"number\": \"1234567\"\n },\n \"address\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"trustees\": [\n {\n \"Name\": \"John Smith\",\n \"Type\": \"Individual\"\n },\n {\n \"Name\": \"Smithfield Steel\",\n \"Type\": \"Company\"\n }\n ]\n },\n \"groupOfPeople\": {\n \"peopleIds\": [\n \"b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2\",\n \"750eb5c5-ac0b-7d11-4997-e0ce9d8896c8\"\n ],\n \"residentialAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n },\n \"mailingAddress\": {\n \"careOf\": \"John Smith\",\n \"buildingLevel\": \"Level 1\",\n \"unitNumber\": \"10\",\n \"unitType\": \"Suite\",\n \"streetNumber\": \"100\",\n \"streetName\": \"Broad\",\n \"streetType\": \"Street\",\n \"addressLine1\": \"Level 1/10\",\n \"addressLine2\": \"100 Broad Street\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\",\n \"locality\": \"Dunkirk\",\n \"county\": \"New York\",\n \"country\": \"United States\",\n \"poBox\": {\n \"careOf\": \"John Smith\",\n \"poBoxType\": \"Locked Bag\",\n \"poBoxNumber\": \"12345\",\n \"city\": \"Chicago\",\n \"state\": \"IL\",\n \"zipCode\": \"60606\"\n }\n }\n },\n \"isDeleted\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Body
application/json-patch+jsonapplication/jsonapplication/*+json