Skip to content

showOrHideDirectoryFieldsForUser ​

Enables a User to show/hide fields from the Directory they exist within (mainly for privacy purposes)

Request ​

http
POST /rest/smartdirectory/{directoryUUID}/directoryFields/showOrHide

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

Path Params:

ParameterTypeRequiredDescription
directoryUUIDStringYesUUID of the Smart Directory as setup in SAM

JSON Request Fields:

ParameterTypeRequiredDescription
fields.idIntegerYesInternal id of the field. See getDirectoryMetadataByUUID
fields.hideStringYesY/N value specifying whether the field should be hidden or not

JSON Request:

json
{
  "fields": [
    {
      "id": 1,
      "hide": "Y"
    },
    {
      "id": 2,
      "hide": "Y"
    },
    {
      "id": 3,
      "hide": "Y"
    }
  ]
}

Response ​

200 OK ​

JSON response of the fields and their updated show/hide statuses.

json
{
  "fields": [
    {
      "id": 1,
      "hide": "Y"
    },
    {
      "id": 2,
      "hide": "Y"
    },
    {
      "id": 3,
      "hide": "Y"
    }
  ],
  "fieldsToBeShown": [],
  "fieldsToBeHidden": [
    1,
    2,
    3
  ]
}

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