Update using JSON Patch notation
The following example call demonstrates how to update an object using JSON Patch, as outlined in RFC-6902.
For more information on JSON Patch syntax, see the API fundamentals guide.
API format
| Parameter | Description |
|---|---|
{OBJECT_TYPE} |
The type of Catalog object to be updated. Valid objects are:
|
{OBJECT_ID} | The identifier of the specific object you want to update. |
Request
The following request updates the name and description fields of a dataset to the values provided in each JSON Patch object. When using JSON Patch, you must also set the Content-Type header to application/json-patch+json.
Response
A successful response returns an array containing the ID of the updated object. This ID should match the one sent in the PATCH request. Performing a GET request for this object now shows that only the name and description have been updated while all other values remain unchanged.
Update using PATCH v2 notation
The /v2/dataSets/{DATASET_ID} endpoint provides a more flexible way to update complex or deeply nested dataset attributes.
Typically, when you update a deeply nested field (such as a.b.c.d), each level in the path must already exist. If any level is missing, you must manually create each one before setting the final value. This often requires multiple operations, which adds complexity and increases the chance of mistakes.
The /v2/dataSets/{DATASET_ID} endpoint automatically creates any missing levels in the path. Instead of manually checking and adding b and c before setting d, the PATCH v2 operation does this for you.
When you send a PATCH request to the /v2/dataSets/{DATASET_ID} endpoint, you only need to send the final structure, and the system fills in the missing parts before applying the update.
If-Match and If-None-Match headers are optional for the /v2/dataSets/{id} endpoint. PATCH requests to this endpoint dynamically merge updates, allowing modifications without retrieving the latest dataset version. While this reduces the risk of data loss from concurrent updates, you can use If-Match with the latest etag to ensure changes apply only to a specific version. Alternatively, If-None-Match prevents updates if the dataset has not changed since the last known version.API format
| Parameter | Description |
|---|---|
{DATASET_ID} | The identifier of the dataset to update. |
Request
Response
A successful response returns an array containing the ID of the updated dataset, which should match the ID sent in the PATCH request. Performing a GET request for this object now shows that the extensions.adobe_lakeHouse.rowExpiration object has been created without requiring prior manual creation steps.
An example dataset before and after update
The example JSON below illustrates the dataset structure before the PATCH request, where the extensions.adobe_lakeHouse.rowExpiration object is not present in the dataset.
Select to view example
The following JSON shows the dataset structure after the PATCH request. The update automatically creates the missing extensions.adobe_lakeHouse.rowExpiration object without prior manual creation steps. This example demonstrates how the /v2/ PATCH request eliminates the need for multiple operations, making updates simpler and more efficient.
Select to view example
More help on this topic
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAgentic AI Roadmap Webinar - Americas & EMEA
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Agentic AI Roadmap Webinar - Americas & APAC
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Adobe Experience Platform + Apps Roadmap Webinar - Americas & EMEA
Preview the Experience Platform and Apps roadmap and ask the product team questions.