Update Monitoring Profile
Product | D&B Direct 2.0 |
Product Code(s) | Not Applicable |
Options(s) | None |
Monitoring Available | No |
Interface | REST |
Method | PUT |
Format(s) | JSON |
Service | Monitoring |
{version} | 4.1 |
4.1 Released on | December 12, 2014 |
This function allows a customer to update or cancel an active monitoring profile.
Update History
No modifications have been made to this data layer since the initial release.
What to do First
Feature Request
IMPORTANT: Please see the new Online Services Security Enhancement Release, effective November 09, 2020.
Data Layer Entitlement
For customers in U.S. and Canadian markets, the API is provisioned for specific collections of products, reports, and/or features (collectively referred to as data layers) for production and trial usage. Entitlement is not required for testing in the sandbox environment.
- This function does not require entitlement for production and trial usage. Entitlement for monitoring is only required for the Add Monitoring Registration function, and for the data layers that will monitored.
Specification
Monitoring Profiles can be removed by setting the status to "Cancelled"; however, if the profile is referenced in a Monitoring Registration it may not be removed.
Restriction: The sequence of Request Parameters submitted to POST/PUT operations currently MUST follow the order presented in this section. This applies to REST calls only.
Restriction: An XML namespace statement MUST be included as the first statement within the primary Aggregate of the request. Please refer to the Sample Request for an example. This applies to REST calls only.
PUT https://direct.dnb.com/V4.1/monitoring/monitoringprofiles/862 Content-Type: application/json Authorization: <My Token> { "mon:UpdateMonitoringProfileRequest": { "@xmlns$mon": "http://services.dnb.com/MonitoringServiceV2.0", "UpdateMonitoringProfileRequestDetail": { "MonitoringProfileUpdateSpecification": { "MonitoringProfileStatusText": "Active", "InquiryReferenceText": { "CustomerReferenceText": "ReferenceText1" } } } } }
Name | Characteristics |
---|---|
{MonitoringProfileID} | int, Required A number that uniquely identifies a set of events and their thresholds, used to monitor a DUNS or a set of DUNS. |
Name | Characteristics |
---|---|
UpdateMonitoringProfileRequest | Aggregate |
UpdateMonitoringProfileRequest@ServiceVersionNumber | Attribute |
UpdateMonitoringProfileRequest@xsi:schemaLocation | Attribute |
UpdateMonitoringProfileRequest { TransactionDetail | Aggregate, Optional Records information necessary to process this request. |
UpdateMonitoringProfileRequest { TransactionDetail { ApplicationTransactionID | string up to 64 chars., Optional A number assigned by the calling application to uniquely identify this request. |
UpdateMonitoringProfileRequest { TransactionDetail { TransactionTimestamp | DateTimestamp, Optional The date and time when this request was created. When the request is from an intermediary, such as a workflow manager or service bus, this is the date and time when the message was sent to the D&B function, i.e., the date and time when the xml document was created by the requesting intermediary. |
UpdateMonitoringProfileRequest { TransactionDetail { SubmittingOfficeID | string up to 64 chars., Optional A number that identifies the system or the software application from where this request originated. / A number used to uniquely identfy the D&B business segment or delivery channel from where this request originated. |
END: UpdateMonitoringProfileRequest } TransactionDetail | /Aggregate |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail | Aggregate, Required |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileDetail | Aggregate, Required |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileDetail | /Aggregate |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification | Aggregate, Required |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringProfileName | string at least 1 chars. up to 64 chars. Pattern: {.*[^\s].*}., Optional A name that is provided by the user to the profile. |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail | Aggregate, Optional |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail { MonitoringElement | Aggregate, Required (Infinite) |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail { MonitoringElement { PCMElementXPATHText | string up to 3000 chars., Required |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail { MonitoringElement { MonitoringChanges | Aggregate, Required (Infinite) |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail { MonitoringElement { MonitoringChanges { ChangeCondition | ChangeConditionEnum, Required Possible values: AnyChange; ValueIncreaseByPercentage; ValueDecreaseByPercentage; ValueChangeByPercentage; ValueIncreaseBy; ValueDecreaseBy; ValueChangeBy; ValueGoesBeyond; ValueGoesBelow; ValueEquals; DateChangeBy; DateEquals |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringElementDetail { MonitoringElement { MonitoringChanges { ChangeValue | string at least 1 chars. up to 64 chars. Pattern: {.*[^\s].*}., Optional |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileUpdateSpecification } MonitoringElementDetail } MonitoringElement } MonitoringChanges | /Aggregate |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileUpdateSpecification } MonitoringElementDetail } MonitoringElement | /Aggregate |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileUpdateSpecification } MonitoringElementDetail | /Aggregate |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { MonitoringProfileStatusText | MonitoringProfileStatusTextEnum, Optional Records the status of the monitoring profile Possible values: Active; Cancelled |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileSpecification { MonitoringElementDetail { ReturnChangedDataOnlyIndicator | boolean When 'true' indicates that Change Notices will only include information for fields whose value has changed. When 'false' indicates that Change Notices will include information for all fields, regardless if the values have changed. The latter scenario applies when a whole data layer and/or aggregate is being monitored. |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { InquiryReferenceText | Aggregate, Optional Records data that allows the customer to specify information to be linked to the request in order to support subsequent order reconciliation. |
UpdateMonitoringProfileRequest { UpdateMonitoringProfileRequestDetail { MonitoringProfileUpdateSpecification { InquiryReferenceText { CustomerReferenceText | string up to 240 chars., Optional(Up to 5x) A freeform reference string provided by the customer to be linked to the product in order to support subsequent order reconciliation. |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileUpdateSpecification } InquiryReferenceText | /Aggregate |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail } MonitoringProfileUpdateSpecification | /Aggregate |
END: UpdateMonitoringProfileRequest } UpdateMonitoringProfileRequestDetail | /Aggregate |
END: UpdateMonitoringProfileRequest | /Aggregate |
Deleting a Profile
To remove a profile, change the status to "Cancelled" through an update request. Canceled items can be restored within 24-hours of the update, after which they are deleted by the system.
"MonitoringProfileUpdateSpecification": {
"MonitoringProfileStatusText": "Cancelled"
},
Endpoint
Use the following endpoint for requesting this feature. The {version} is dependent on the underlying service delivering the response.
Endpoint (Monitoring) |
---|
PUT https://direct.dnb.com/V{version}/monitoring/monitoringprofiles/{MonitoringProfileID} |
Testing
This operation will return a static set of results in the D&B Direct test environment (sandbox), regardless of the request parameters.
Feature Response
NOTE: The D&B Direct REST implementation uses the BadgerFish approach for JSON with some minor variations.
Specification
The following is a list of the possible data fields returned by this operation in the JSON response. Samples are provided for testing successful and failed retrieval, and to demonstrate the basic layout of a response. The data returned in samples may not represent actual values that this feature will deliver.
NOTE: The D-U-N-S Number returned in the response will be a nine-digit zero-padded, numeric value.
{"UpdateMonitoringProfileResponse": { "@ServiceVersionNumber": "2.0", "TransactionDetail": { "ServiceTransactionID": "Id-82a4d309542c1f8d01fb742e-1", "TransactionTimestamp": "2014-10-01T11:36:45.206-04:00" }, "TransactionResult": { "SeverityText": "Information", "ResultID": "CM000", "ResultText": "Success" }, "UpdateMonitoringProfileResponseDetail": {"MonitoringProfileDetail": { "MonitoringProfileID": 862, "MonitoringProfileStatusText": "Active", "InquiryReferenceText": {"CustomerReferenceText": ["ReferenceText1"]}, "FormerMonitoringProfileDetail": { "MonitoringProfileName": "ATLAS_DCP_STD", "MonitoringElementDetail": {"MonitoringElement": [ { "PCMElementXPATHText": "//Organization/OrganizationDetail/StandaloneOrganizationIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationName/OrganizationPrimaryName/OrganizationName", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/RegistrationIssuerName", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationDetail/ControlOwnershipTypeText", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationDetail/ControlOwnershipDate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Financial/KeyFinancialFiguresOverview/SalesRevenueAmount", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/IndividualEntityEmployeeDetails/TotalEmployeeQuantity", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/IndividualEntityEmployeeDetails/ReliabilityText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/ConsolidatedEmployeeDetails/TotalEmployeeQuantity", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/ConsolidatedEmployeeDetails/ReliabilityText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/ConsolidatedEmployeeDetails/EmployeeCategoryDetails/EmployeeBasisText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/ActivitiesAndOperations/SubjectIsAgentDetails/AgentIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/ActivitiesAndOperations/ImportDetails/ImportIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/ActivitiesAndOperations/ExportDetails/ExportIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SubjectHeader/LastUpdateDate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SocioEconomicIdentification/SmallBusinessIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SocioEconomicIdentification/MinorityOwnedIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SocioEconomicIdentification/LaborSurplusAreaIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/StartDate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Financial/KeyFinancialFiguresOverview/TotalEquityAmount", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/RegistrationIssuerDUNSNumber", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/OrganizationIdentificationNumber", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/FilingOrganizationName", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/AssignmentMethodText", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationDetail/OrganizationStartYear", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/FinancialAssetArticle/AssetArticleSummary/AssetTypeText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/FinancialAssetArticle/AssetArticleSummary/AssetArticleQuantity", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Financial/KeyFinancialFiguresOverview/StatementHeaderDetails/FinancialStatementToDate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Linkage/HeadquartersOrganization/DUNSNumber", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationDetail/OperatingStatusText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/OrganizationName/FormerOrganizationPrimaryName@RegisteredNameIndicator/OrganizationName", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SubjectHeader/MarketabilityIndicator", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SubjectHeader/NonMarketableReasonText@DNBCodeValue", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/SubjectHeader/OrganizationSummaryText", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/IncorporationYear", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/EmployeeFigures/EmployeeQuantityGrowthRate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Financial/KeyFinancialFiguresOverview/EmployeeQuantityGrowthRate", "MonitoringChanges": [ { "ChangeCondition": "AnyChange", "ChangeValue": null }] }, { "PCMElementXPATHText": "//Organization/Location/PrimaryAddress", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/Location/MailingAddress", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/Telecommunication", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/SubjectHeader/TransferDUNSNumberRegistration", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/OrganizationIdentificationNumberDetail@DNBCodeValue/RegistrationLocation/PrimaryAddress", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/RegisteredDetail/StockExchangeDetails", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/IndustryCode/IndustryCode@DNBCodeValue", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/ActivitiesAndOperations/LineOfBusinessDetails", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/PrincipalsAndManagement/CurrentPrincipal", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/PrincipalsAndManagement/MostSeniorPrincipal", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/SocioEconomicIdentification/OwnershipEthnicity", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/OrganizationDetail/FamilyTreeMemberRole", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/ThirdPartyAssessment/ThirdPartyAssessment", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/OrganizationName/TradeStyleName", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] }, { "PCMElementXPATHText": "//Organization/Financial/FinancialStatement", "MonitoringChanges": [{"ChangeCondition": "AnyChange"}] } ]}, "MonitoringProfileStatusText": "Cancelled", "InquiryReferenceText": {"CustomerReferenceText": [ "ATLAS_DCP_STD", "ATLAS_DCP_STD" ]} } }} }}
Response Codes & Error Handling
Successful service requests will return a CM000 response code in the TransactionResult ResultID field. Otherwise, one of the D&B Direct standard response codes will be returned.
This operation may return the following response codes: CM001, CM002, CM004, CM007, CM023, MN001, MN004, SC001-SC009.
D&B Direct 2.0 API requests are provided on a metered basis; and may require entitlement prior to use in the production environment. In addition, a concurrency limit (QPS) is monitored to ensure that it is not exceeded. An error code will be returned in the event that a transaction is throttled.
While this operation is provided on a metered basis, usage is tracked; however, no billing for successful calls is recorded.
Operation-specific supplemental response code explanations:
CM001 | Profile name is sent as blank; or Blank value passed for PCMElementXpath. |
CM002 | Any schema validation failure (e.g. elements that are mandatory in the schema are not present in the request, Sequence of the element is not matching in the schema, Data type mismatch or Invalid notification Level). |
CM007 | Monitoring profile cannot be canceled as registrations are available for this profile; Monitoring profile ID not available in the system; Invalid Change Value (Alert threshold); or PCMElementXpath does not belong to the Product. |
CM023 | Duplicate Profile Name |