Revising a DataElement is the action of creating a new revision of the
DataElement with the current (head
) revision. A revision of a DataElement will
have its own Id. The original DataElement may be discovered via the origin
link.
Revising a DataElement is achieved by supplying an action
with a value of
revise
in the meta
of the request data
.
clean_text
default_value
delegate_descriptor_id
enabled
force_lower_case
name
settings
storage_duration
PATCH /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 PATCH \
-d \
'
{
"data": {
"attributes": {
},
"meta": {
"action": "revise"
},
"id": "DE9464b6574e76449d8802363af59d1e70",
"type": "data_elements"
}
}'
{
"data": {
"id": "DEb724bb37252b4c499abf493577191742",
"type": "data_elements",
"attributes": {
"created_at": "2023-04-21T22:55:36.934Z",
"deleted_at": null,
"dirty": false,
"enabled": true,
"name": "My Data Element 2023-04-21 16:55:36 -0600",
"published": false,
"published_at": null,
"revision_number": 1,
"updated_at": "2023-04-21T22:55:36.934Z",
"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/DEb724bb37252b4c499abf493577191742/libraries"
}
},
"revisions": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/revisions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/notes"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/property"
},
"data": {
"id": "PRd936df70d3dd43a592a2920ffe7786d4",
"type": "properties"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/origin"
},
"data": {
"id": "DE9464b6574e76449d8802363af59d1e70",
"type": "data_elements"
}
},
"extension": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/extension"
},
"data": {
"id": "EXf705bd2e761f48b2b906a32b8ac41a4e",
"type": "extensions"
}
},
"updated_with_extension_package": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/updated_with_extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
},
"updated_with_extension": {
"links": {
"related": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742/updated_with_extension"
},
"data": {
"id": "EX5aae386e046d45f29c033dd782582b35",
"type": "extensions"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PRd936df70d3dd43a592a2920ffe7786d4",
"origin": "https://reactor.adobe.io/data_elements/DE9464b6574e76449d8802363af59d1e70",
"self": "https://reactor.adobe.io/data_elements/DEb724bb37252b4c499abf493577191742",
"extension": "https://reactor.adobe.io/extensions/EXf705bd2e761f48b2b906a32b8ac41a4e"
},
"meta": {
"latest_revision_number": 1
}
}
}