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 a DataElement

Retrieve the data for an existing DataElement, based on its ID.

note

NOTE: 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 a data.meta.deleted_at element.

Definition

GET  /data_elements/:id

Example Request

curl https://mc-api-activation-reactor-integration.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]" \
  -X GET
  

Example Response

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