Skip to content

updateAddressForDirectoryContact ​

Updates an existing Address for a Contact existing in a Directory. NOTE: If "Sync Up" enabled then address may update related addresses in User Profile and potentially other related Directories.

Request ​

http
PUT /rest/smartdirectory/{directoryUUID}/contactRecord/addresses/{addressUUID}

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

Path Params:

ParameterTypeRequiredDescription
directoryUUIDStringYesUUID of the Smart Directory as setup in SAM
addressUUIDStringYesUUID of a Contact Address

JSON Request:

ParameterTypeRequiredDescription
uuidString (char 50)YesThe internal unique UUID of the address. Used for updating and deleting
typeCodeString (char 1)NoThe type of the Address. Either W=Work, P=Personal, or O=Other
nameString (char 255)NoName of the address e.g. Alfred Hospital
streetString (char 255)NoStreet of the address e.g. 123 Whatever Street
cityString (char 100)NoCity of the address e.g. Melbourne
suburbString (char 100)NoSuburb of the address e.g. Alfred Hospital
stateCodeString (char 6)NoISO State Code of the address e.g. AU-VIC. Should only use values sourced from getStates /refdata/states API
postCodeString (char 20)NoPostcode of the address e.g. 3000
countryCodeString (char 2)NoISO Country Code of the address e.g. AU. Should only use values sourced from getCountries /refdata/countries API
emailString (char 255)NoEmail associated with the address e.g. some@email.address
phoneString (char 30)NoPhone associated with the address e.g. 03 789546757
faxString (char 30)NoFax associated with the address e.g. 03 789546757
mobileString (char 30)NoMobile associated with the address e.g. 0404444444
departmentString (char 50)NoDepartment associated with the address e.g. Radiology
divisionString (char 50)NoDivision associated with the address e.g. Oncology
jobTitleString (char 50)NoJob title associated with the address e.g. Head of Radiooncology
json
{
   "uuid":"75594f4e-d053-4c93-b045-d013d4aea3c0",
   "typeCode":"W",
   "name":"Address 1 Name",
   "street":"Address 1 Street",
   "city":"Address 1 City",
   "suburb":"Address 1 Suburb",
   "stateCode":"AU-NSW",
   "postcode":"2000",
   "countryCode":"AU",
   "email":"test@test.com",
   "phone":"phone",
   "fax":"fax",
   "mobile":"mobile",
   "department":"department",
   "division":"division",
   "jobTitle":"jobTitle"
}

Response ​

200 OK ​

json
{  
       "uuid":"75594f4e-d053-4c93-b045-d013d4aea3c0",
       "type":"Work",
       "typeCode":"W",
       "name":"Address 1 Name",
       "street":"Address 1 Street",
       "city":"Address 1 City",
       "suburb":"Address 1 Suburb",
       "stateCode":"AU-NSW",
       "state":"New South Wales",
       "postcode":"2000",
       "countryCode":"AU",
       "country":"AUSTRALIA",
       "email":"test@test.com",
       "phone":"phone",
       "fax":"fax",
       "mobile":"mobile",
      "department":"department",
       "division":"division",
       "jobTitle":"jobTitle"
    }

Errors ​

ExceptionDescription
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInvalidParameterExceptionSee Error Definitions
WSSmartDirectoryNotFoundExceptionSee Error Definitions
WSSmartDirectoryServiceExceptionSee Error Definitions
WSUserNotConsentedExceptionSee Error Definitions
WSSmartDirectoryNotEnabledForCompanyExceptionSee Error Definitions
WSUserContactNotFoundExceptionSee Error Definitions
WSUserNotInSmartDirectoryExceptionSee Error Definitions
WSSmartDirectoryInactiveExceptionSee Error Definitions
WSAddressServiceExceptionSee Error Definitions
WSAddressAlreadyFullExceptionSee Error Definitions
WSContactNotFoundExceptionSee Error Definitions
WSNoAddressFieldsInDirectoryExceptionSee Error Definitions
WSFieldLengthExceptionSee Error Definitions