API explorerChangelog
Overview

Sections

Theme switcher

Stage

The staging step is the second step in the import process where the data gets staged for initial validation.

The response for each staging request also includes the total number of records received, records that were validated successfully, and the records that failed the initial validation process.

The ValidationFailed count represents the number of records that failed validation during the data staging process. User permissions are also validated during the staging process. Records that fail to validate against the Profile, Preference and Channel-level permissions get added to the ValidationFailed count.

The staging step can be performed multiple times prior to executing an import, allowing you to stage large sets of data over time, as long as the access token remains active. For instance, you can initiate an import early in the morning and stage data at multiple intervals throughout several hours. When the execute request is triggered, the staged data will be imported into MyPreferences.

During the bulk import process, all staged records are grouped together before being written to the database. In this stage, the system assigns a single create date to all newly imported profiles that do not exist, processing them collectively as a batch.

When updating preferences tied to a prior version of consent, the AllowPriorConsents flag must be set to true. If this flag is not enabled, the API will reject the record and classify it as an exception. Alternatively, you may omit the previous consent details from the import payload and update only the preference information.

Header Parameters

Authorizationstring

Authorization token

Path Parameters

clientIdstring

This is your organization’s MyPreferences account Id. A 404 is returned if this value is invalid.

accessTokenstring

Access token returned from InitiateBulkImport call. A 401 is returned if this value is invalid.

Body Parameters

UserProfilePreferencesarray

Collection of BulkUserProfilePreferences. The parent JSON schema which comprises of multiple object collections, each of which can be used for importing data.

Show child attributes

Response

200
Object
Success

Response Attributes

TotalRecordsReceivednumber

Total number of records that were staged. This number is the combined value of all of the records that were added during the staging phase of the import.

ValidationSuccessfulnumber

Total Number of records that were validated successfully during the staging phase and are ready for execution. This number is the combined value of all records submitted across various requests during the staging phase of the import.

ValidationFailednumber

Number of records that failed validation during the staging process. Any records that fail validation will not be imported during the execution phase.

Processednumber

Number of records that have been imported into MyPreferences. During the staging process, this value will always return 0.

Pendingnumber

Total amount of records that have been marked as pending to be processed during the staging phase. This number is the combined value of all of the requests that were received during the staging phase of the import.

Exceptionsnumber

Total number of records that encountered exceptions during the import execution. During the staging process, this value will always return 0.

NotHonorednumber

Number of records that were not honored by the system during the import process. During the staging process, this value will always return 0.

AccessTokennumber

Token created by the initiate method used to stage, execute, and retrieve import status and failed records.

Statusstring

Returns the current state of the import. 'Initiated', 'Staging', 'Queued', 'Processing', 'Completed', or 'Failed'.

Expiresstring

Date when the access token will expire. Default expiration time is 12 hours.

Namestring

Name associated with the bulk import operation.

DataStageDurationnumber

Determines the number of days for retaining staged data before it is permanently deleted. If not specified, it defaults to 3 days. The staging duration cannot exceed 10 days.

ImportActionstring

Specifies whether to add or delete profiles. Supported values are "Add" and "Delete".

MatchCriteriastring

An optional parameter that can be used as a matching identifier in the absence of a Profile ID. Currently, AlternateIdType is the only supported match criteria.

MatchValuestring

TypeName associated with the match criteria. Specify the name of an AlternateIdType configured in your account since AlternateIdType is the only supported Match Criteria.

RefreshAlternateIdsboolean

If set to true, existing AlternateIds that are NOT included in the import will be deactivated. Default value is false.

RefreshContactsboolean

If set to true, existing profile contact elements that are NOT included in the import will be deactivated along with any preferences associated with them. Default value is false.

RefreshCustomFieldsboolean

If set to true, existing CustomFields that are NOT included in the import will be deleted. Default value is false.

RefreshGroupsboolean

If set to true, existing Groups that are NOT included in the import, will be deactivated. Default value is false.

RefreshTagsboolean

If set to true, existing Tags that are NOT included in the import, will be deleted. Default value is false.

AllowPriorConsentsboolean

A boolean flag, when set to true, permits adding an older version of a consent to the profile, provided that a more recent version of the consent is not already present.

400
Object
The request was invalid and cannot be processed. This may be a result of a malformed request. You must update the request before trying again.
401
Object
Authentication credentials are missing or incorrect. You must verify your ClientId, UserId, and Authorization Scheme before trying again.
403
Object
The authentication credentials were insufficient to grant access to the requested resource. In most cases, your user may not have the appropriate permissions to access the requested resource. Verify User Group permissions for your user before trying again.
404
Object
The requested resource cannot be found. Most errors in this category are returned when a resource specified on the URL path is not found. In certain instances, it is also returned when a parameter specified in the request body is also not found. See error description for more details.
429
Object
Too Many Requests.
503
Object
The server encountered an unexpected condition that prevented it from fulfilling the request. Notify PossibleNOW Support if it’s a continuous occurrence.
Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?