Update Contact
PATCH {{baseUrl}}/contacts/:contactId
Updates contact details (non Joint-member)
Will update all of the details of the contact represented by its id. Any missing details will NOT be updated.
Constraint: contactType cannot be ‘Joint Member’
Request Body
| Key | Datatype | Mandatory | Constraints |
|---|---|---|---|
| firstName | String | No | Only allowed if the contactType is 'People' |
| middleName | String | No | Only allowed if contactType is 'People' |
| lastName | String | No | Only allowed if the contactType is 'People' |
| name | String | No | Only allowed if the contactType is 'Company'/'Other Entity' |
| addressId | Number | No | Only allowed if the contactType is 'People'. Must be a valid existing addressId |
| title | String | No | Only allowed if the contactType is 'People' |
| sex | String | No | Only allowed if the contactType is 'People'. Must be one of 'Male'/'Female' |
| String | No | ||
| mobile | String | No | |
| phone1 | String | No | |
| phone2 | String | No | |
| taxNumber | String | No | |
| birthday | String | No | Only allowed if contactType is 'People'. ISO 8601 date https://en.wikipedia.org/wiki/ISO_8601 |
| birthPlace | String | No | Only allowed if contactType is 'People' |
| birthState | String | No | Only allowed if contactType is 'People'. Must be one of 'ACT'/'NSW'/'VIC'/'QLD'/'SA'/'WA'/'TAS'/'NT'/'Foreign' |
| birthCountry | String | No | Only allowed if contactType is 'People'. ISO 3166 country code/name https://en.wikipedia.org/wiki/ISO_3166 |
| skype | String | No | Only allowed if contactType is 'People' |
| businessNumber | String | No | Only allowed if the contactType is 'Company' |
| placeOfIncorportaion | String | No | Only allowed if the contactType is 'Company'. ISO 3166 country code/name https://en.wikipedia.org/wiki/ISO_3166 |
| incorporationDate | String | No | Only allowed if the contactType is 'Company'. ISO 8601 date https://en.wikipedia.org/wiki/ISO_8601 |
Request Body
{"addressId"=>1675073, "birthCountry"=>"AUSTRALIA", "birthPlace"=>"CLAYTON", "birthState"=>"VIC", "birthday"=>"2001-08-01", "businessNumber"=>"", "companyNumber"=>nil, "contactType"=>"People", "email"=>"c@v.com", "firstName"=>"Christian", "id"=>1941877, "incorporationDate"=>nil, "lastName"=>"Vieri", "middleName"=>"", "mobile"=>nil, "name"=>"Christian Vieri", "nationality"=>nil, "phone1"=>nil, "phone2"=>nil, "placeOfIncorporation"=>nil, "representativeIds"=>nil, "sex"=>nil, "skype"=>nil, "taxNumber"=>"", "title"=>nil}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"addressId":1675073,"birthCountry":"AUSTRALIA","birthPlace":"CLAYTON","birthState":"VIC","birthday":"2001-08-01","businessNumber":"","companyNumber":null,"contactType":"People","email":"c@v.com","firstName":"Christian","id":1941877,"incorporationDate":null,"lastName":"Vieri","middleName":"","mobile":null,"name":"Christian Vieri","nationality":null,"phone1":null,"phone2":null,"placeOfIncorporation":null,"representativeIds":null,"sex":null,"skype":null,"taxNumber":"","title":null}