Skip to content

copyAddressesFromUserToDirectoryContact ​

Allows one or more User addresses to be copied down into a Directory i.e. Contact record within a single Company.

Request ​

http
POST /rest/smartdirectory/{directoryUUID}/contactRecord/addresses/copyFromUser

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

Path Params:

ParameterTypeRequiredDescription
directoryUUIDStringYesUUID of the Smart Directory as setup in SAM

Request Params:

ParameterTypeRequiredDescription
addressUUIDsList of StringsYesList of Address UUIDs from User's profile to be copied down into the Directory (at least one required)

JSON Request:

json
{
        "addressUUIDs" : ["ADDRESS1_UUID", "ADDRESS2_UUID"]
}

Response ​

200 OK ​

Returns the newly created addresses in the Directory

json
[
  {
    "uuid": "ADDRESS1_UUID",
    "type": null,
    "typeCode": null,
    "name": "ADDRESS 1 NAME",
    "street": "ADDRESS 1 STREET",
    "city": null,
    "suburb": null,
    "stateCode": null,
    "state": null,
    "postcode": null,
    "countryCode": null,
    "country": null,
    "email": null,
    "phone": null,
    "fax": null,
    "mobile": null,
    "department": null,
    "division": null,
    "jobTitle": null
  },
  {
    "uuid": "ADDRESS2_UUID",
    "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
WSAddressAlreadyFullExceptionSee Error Definitions
WSAddressNotFoundExceptionSee Error Definitions
WSAlreadyExistsExceptionSee Error Definitions
WSNoAddressFieldsInDirectoryExceptionSee Error Definitions
WSLimitExceededExceptionSee Error Definitions