Retrieve the data for an existing DataElement, based on its ID.
When DataElements
are deleted, they are marked as deleted but are not actually removed from system.
Therefore, it is possible to retrieve a deleted DataElement
.
Deleted DataElements
can be identified by the presence of data.meta.deleted_at
.
GET /data_elements/:id
curl https://reactor.adobe.io/data_elements/:id \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X GET
{
"data": {
"id": "DE84ff881155f24d279b45c3a02923ab96",
"type": "data_elements",
"attributes": {
"created_at": "2023-04-21T22:55:12.748Z",
"deleted_at": null,
"dirty": true,
"enabled": true,
"name": "My Data Element 2023-04-21 16:55:12 -0600",
"published": false,
"published_at": null,
"revision_number": 0,
"updated_at": "2023-04-21T22:55:12.748Z",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"clean_text": false,
"default_value": null,
"delegate_descriptor_id": "kessel-test::dataElements::dom-attribute",
"force_lower_case": false,
"review_status": "unsubmitted",
"storage_duration": null,
"settings": "{\"elementProperty\":\"html\",\"elementSelector\":\".target-element\"}"
},
"relationships": {
"libraries": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/libraries"
}
},
"revisions": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/revisions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/notes"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/property"
},
"data": {
"id": "PRb12dd90f1e964d5ab05bf9c6b056fc75",
"type": "properties"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/origin"
},
"data": {
"id": "DE84ff881155f24d279b45c3a02923ab96",
"type": "data_elements"
}
},
"extension": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/extension"
},
"data": {
"id": "EXb5ab393a7432428c9e864dd81b83fb01",
"type": "extensions"
}
},
"updated_with_extension_package": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/updated_with_extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
},
"updated_with_extension": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96/updated_with_extension"
},
"data": {
"id": "EX106fcbebad1044faa77a99e4e3dfa1f3",
"type": "extensions"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PRb12dd90f1e964d5ab05bf9c6b056fc75",
"origin": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96",
"self": "https://reactor.adobe.io/data_elements/DE84ff881155f24d279b45c3a02923ab96",
"extension": "https://reactor.adobe.io/extensions/EXb5ab393a7432428c9e864dd81b83fb01"
},
"meta": {
"latest_revision_number": 0
}
}
}