WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Get the origin of a DataElement

Retrieve the data for the specified DataElement’s origin.

The origin of a DataElement is the DataElement that was revised to create this DataElement.

Definition

GET  /data_elements/:data_element_id/origin

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/data_elements/:data_element_id/origin \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": {
    "id": "DE5bfb518c132c4c989c10bf37e72fec99",
    "type": "data_elements",
    "attributes": {
      "created_at": "2018-08-31T16:49:44.697Z",
      "dirty": false,
      "enabled": true,
      "name": "My Data Element",
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-08-31T16:49:44.697Z",
      "clean_text": false,
      "default_value": "",
      "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": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/revisions"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/property"
        },
        "data": {
          "id": "PRbcb511a5995543c09e1cf0700e6bafa7",
          "type": "properties"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/origin"
        },
        "data": {
          "id": "DE5bfb518c132c4c989c10bf37e72fec99",
          "type": "data_elements"
        }
      },
      "extension": {
        "links": {
          "related": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/extension"
        },
        "data": {
          "id": "EX4e4ba9bdecd14ba483c391e465f349ba",
          "type": "extensions"
        }
      },
      "updated_with_extension_package": {
        "links": {
          "related": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99/updated_with_extension_package"
        },
        "data": {
          "id": "EP27e9323eb585411fae6086fc78a3b70b",
          "type": "extension_packages"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PRbcb511a5995543c09e1cf0700e6bafa7",
      "origin": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99",
      "self": "http://localhost:9010/data_elements/DE5bfb518c132c4c989c10bf37e72fec99",
      "extension": "http://localhost:9010/extensions/EX4e4ba9bdecd14ba483c391e465f349ba"
    },
    "meta": {
      "latest_revision_number": 1
    }
  }
}