Update a Data Product
Update data product properties using JSON Patch operations (add, remove, replace) to modify metadata fields like description, owners, assets, and policies via the Collate REST API.
PATCH
PATCH /v1/dataProducts/{id}
Update a Data Product
Update a data product’s properties using JSON Patch. You can update by ID or by fully qualified name.Update by ID
Update by Name
UsePATCH /v1/dataProducts/name/{fqn} to update by fully qualified name.
Body Parameters
Send a JSON Patch array of operations. Each operation targets a field path, such as/description. Only the fields you target are changed. You can patch the following fields:
Classification tags or glossary terms applied to the data product. To add or remove a single tag, use the JSON Patch operations described in Add or Remove Tags.
Add or Remove Tags
Tags are an array on the data product, so you change them with JSON Patch operations against/tags.
Add a Tag
Use anadd operation at /tags/0 with a full tag object. Include all four fields: tagFQN, source, labelType, and state.
source to Glossary and tagFQN to the term’s fully qualified name.
Remove a Tag
Aremove operation targets a position in the tags array, not a tag name. JSON Patch has no way to remove a tag by its tagFQN. To remove a tag:
- Retrieve the data product with its tags:
GET /v1/dataProducts/name/{fqn}?fields=tags. - Find the position (starting at
0) of the tag you want to remove in the returnedtagsarray. - Send a
removeoperation for that position.
Note:
PUT can only add tags and never removes them. Use PATCH to remove a tag. For the full rules, see Entity Update Behavior.PATCH /v1/dataProducts/{id}