Preview Object With Changes
This endpoint allows you to see how an object will look after applying data change request(s).
The object is not updated in the database.
Request
GET {TenantURL}/{objectURI}/_withChangeRequests
Parameter | Name | Required | Details |
---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API). |
Query |
changeRequestIds
|
Yes |
Comma-separated list of IDs of the data changes requests which should be applied to the object. |
ignoreConflicts
|
No |
If this parameter is set to Default value is |
Response
JSON representing the object with applied changes.
GET{TenantURL}/entities/00005KL/_withChangeRequests?changeRequestIds=0000bIH,0000OVV
{
"URI": "entities/00005KL",
"type": "configuration/entityTypes/HCP",
"createdBy": "User",
"createdTime": 1448451589155,
"updatedBy": "User",
"updatedTime": 1448451589776,
"attributes": {
"FirstName": [{
"type": "configuration/entityTypes/HCP/attributes/FirstName",
"ov": true,
"value": "Test",
"pin": true,
"URI": "entities/00005KL/attributes/FirstName/2"
}],
"LastName": [{
"type": "configuration/entityTypes/HCP/attributes/LastName",
"ov": false,
"value": "Test",
"ignored": true,
"URI": "entities/00005KL/attributes/LastName/3"
}],
"ProductMetrics": [{
"label": "NewName1",
"value": {
"Name": [{
"type": "configuration/entityTypes/HCP/attributes/ProductMetrics/attributes/Name",
"ov": true,
"value": "NewName1",
"URI": "entities/00005KL/attributes/ProductMetrics/4/Name/37"
}],
"NumberPatients": [{
"type": "configuration/entityTypes/HCP/attributes/ProductMetrics/attributes/NumberPatients",
"ov": true,
"value": "9999",
"URI": "entities/00005KL/attributes/ProductMetrics/4/NumberPatients/36"
}]
},
"ov": true,
"URI": "entities/00005KL/attributes/ProductMetrics/4"
}],
"Identifiers": [{
"label": "Test 1111",
"value": {
"Type": [{
"type": "configuration/entityTypes/HCP/attributes/Identifiers/attributes/Type",
"ov": true,
"value": "Test",
"URI": "entities/00005KL/attributes/Identifiers/7/Type/8"
}],
"ID": [{
"type": "configuration/entityTypes/HCP/attributes/Identifiers/attributes/ID",
"ov": true,
"value": "1111",
"URI": "entities/00005KL/attributes/Identifiers/7/ID/9"
}]
},
"ov": true,
"URI": "entities/00005KL/attributes/Identifiers/7"
}],
"Address": [{
"label": "Address1",
"relationshipLabel": "rank-1",
"value": {
"AddressRank": [{
"type": "configuration/relationTypes/HasAddress/attributes/AddressRank",
"ov": true,
"value": "1",
"URI": "entities/00005KL/attributes/Address/0000Aef/AddressRank/20"
}],
"AddressLine1": [{
"type": "configuration/entityTypes/Location/attributes/AddressLine1",
"ov": true,
"value": "Address1",
"URI": "entities/00005KL/attributes/Address/0000Aef/AddressLine1/18"
}]
},
"ov": true,
"URI": "entities/00005KL/attributes/Address/0000Aef",
"refEntity": {
"type": "configuration/entityTypes/Location",
"crosswalks": [{
"URI": "entities/00005KL/crosswalks/00009ab.11",
"type": "configuration/sources/Veeva",
"value": "763127815f9f6ec9e2b9a399db8d18c7",
"createDate": "2015-11-25T17:39:49.155+06:00",
"updateDate": "2015-11-25T17:39:49.155+06:00",
"attributeURIs": [
"entities/00005KL/attributes/Address/0000Aef/AddressLine1/18",
"entities/00005KL/attributes/Address/0000Aef"
],
"crosswalkExternalInfo": {}
}],
"objectURI": "entities/00009ab"
},
"refRelation": {
"type": "configuration/relationTypes/HasAddress",
"crosswalks": [{
"URI": "entities/00005KL/crosswalks/0000Aef.12",
"type": "configuration/sources/Veeva",
"value": "r1",
"createDate": "2015-11-25T17:39:49.155+06:00",
"updateDate": "2015-11-25T17:39:49.155+06:00",
"attributeURIs": [
"entities/00005KL/attributes/Address/0000Aef",
"entities/00005KL/attributes/Address/0000Aef/AddressRank/20"
],
"crosswalkExternalInfo": {}
}],
"startRefPinned": false,
"endRefPinned": false,
"startRefIgnored": false,
"endRefIgnored": false,
"objectURI": "relations/0000Aef"
},
"startObjectCrosswalks": [{
"type": "configuration/sources/Veeva",
"value": "e1"
],
"singleAttributeUpdateDates": {
"entities/00005KL/attributes/ProductMetrics/4/NumberPatients/36": "2015-11-25T17:39:49.776+06:00",
"entities/00005KL/attributes/ProductMetrics/4": "2015-11-25T17:39:49.776+06:00",
"entities/00005KL/attributes/ProductMetrics/4/Name/37": "2015-11-25T17:39:49.776+06:00"
}
}]
}]
},
"crosswalks": [{
"URI": "entities/00005KL/crosswalks/16",
"type": "configuration/sources/Veeva",
"value": "e1",
"reltioLoadDate": "2015-11-25T17:39:49.776+06:00",
"createDate": "2015-11-25T17:39:49.155+06:00",
"updateDate": "2015-11-25T17:39:49.155+06:00",
"attributes": [
"entities/00005KL/attributes/FirstName/2",
"entities/00005KL/attributes/LastName/3",
"entities/00005KL/attributes/ProductMetrics/4/NumberPatients/36",
"entities/00005KL/attributes/ProductMetrics/4",
"entities/00005KL/attributes/ProductMetrics/4/Name/37",
"entities/00005KL/attributes/Identifiers/7",
"entities/00005KL/attributes/Identifiers/7/Type/8",
"entities/00005KL/attributes/Identifiers/7/ID/9"
],
"singleAttributeUpdateDates": {
"entities/00005KL/attributes/ProductMetrics/4/NumberPatients/36": "2015-11-25T17:39:49.776+06:00",
"entities/00005KL/attributes/ProductMetrics/4": "2015-11-25T17:39:49.776+06:00",
"entities/00005KL/attributes/ProductMetrics/4/Name/37": "2015-11-25T17:39:49.776+06:00"
}
}],
"secondaryLabel": "Address1",
"label": "Test"
}