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!


List DataElements for a Property

Definition

GET  /properties/:property_id/data_elements

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/data_elements \
  -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": "DE2b4e9b519c28488fbb0a77b2f825238d",
      "type": "data_elements",
      "attributes": {
        "created_at": "2018-06-15T19:09:30.226Z",
        "dirty": true,
        "enabled": true,
        "name": "My Data Element",
        "published": false,
        "published_at": null,
        "revision_number": 0,
        "updated_at": "2018-06-15T19:09:30.226Z",
        "clean_text": false,
        "default_value": "",
        "delegate_descriptor_id": "EPc9ce7e7145a3406f9d9d73a16c925ca2::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/DE2b4e9b519c28488fbb0a77b2f825238d/libraries"
          }
        },
        "revisions": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d/revisions"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d/property"
          },
          "data": {
            "type": "properties",
            "id": "PRc4110121b59642b089357d0557372416"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d/origin"
          },
          "data": {
            "type": "data_elements",
            "id": "DE2b4e9b519c28488fbb0a77b2f825238d"
          }
        },
        "extension": {
          "links": {
            "related": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d/extension"
          },
          "data": {
            "type": "extensions",
            "id": "EX8b7b50c9b64b4526a7af9d15590945e6"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PRc4110121b59642b089357d0557372416",
        "origin": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d",
        "self": "http://localhost:9010/data_elements/DE2b4e9b519c28488fbb0a77b2f825238d",
        "extension": "http://localhost:9010/extensions/EX8b7b50c9b64b4526a7af9d15590945e6"
      },
      "meta": {
        "latest_revision_number": 0
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}