API Reference > Manage assets > Update assets
  

Update assets

Send a PATCH request to update business assets. You can also create and remove relationships between assets and enrich technical assets with business context.
Submit a request with the following method and endpoint. Specify the asset ID and the scheme of the asset that you want to update.
Method
Endpoint
PATCH
<baseApiUrl>/data360/content/v1/assets/<assetID>?scheme=<EXTERNAL/INTERNAL>
The base API URL differs for each pod. For more information, see Send Requests.

Request parameters

Enter the specific parameters in the URL to update assets and create or remove relationships between assets.
You can use the following request URL parameters to update assets.
Parameter
Description
assetID
The internal ID or the unique reference ID of the asset that you want to update.
scheme
Specify the type of asset ID value that you have entered in the assetID parameter. You can enter either internal ID or external ID to update assets. Enter one of the following values:
  • - INTERNAL. Indicates that the asset ID that you specify in the request is the internal ID of the asset.
  • Note: You can obtain the internal ID by looking at the URL of the asset page in the Data Governance and Catalog application.
  • - EXTERNAL. Indicates that the asset ID that you specify in the request is the unique reference ID of the asset.

Request body

Use the request body to specify the details of the update that you want to make for the asset. You can also update multiple segments for an asset.
In the body of the request, specify the parameters in the following format:

[
{
"operation": "add",
"segment": "summary",
"attributes": {
"core.description": "This is a table"
"fromIdentity": "3375e658-2d20-43bb-a74f-fc1f5ee7b418",
"toIdentity": "9a6b176a-7492-4810-bf77-62e0107df4e1",
"association": "com.infa.ccgf.models.governance.relatedBusinessTerm"
}
}
]
The following table describes the important parameters that you can specify in the body of the request:
Parameter
Type
Description
operation
String
Enter the following values:
  • - add
  • - remove
  • - replace
segment
Object
Specify the type of update that you want to make for the asset. The default value is segments=all. You can enter the following segment values such as: summary: Updates the name, description, and the location of the asset.
stakeholdership: Updates the stakeholder information.
data classification: Updates the data classification details.
parent: updates the parent details.
For more information about the properties of business assets, see the Understanding Business Assets help.
For more information about the properties of technical assets, see the Understanding Technical Assets help.
fromIdentity
String
If you want to create or remove a relationship between the asset and another asset, enter the source of the asset. This is the internal ID of the source asset.
fromExternalIdentity
String
If you want to create or remove a relationship between the asset and another asset, enter the source of the asset. This is the external ID of the source asset.
toIdentity
String
If you want to create or remove a relationship between the asset and another asset, enter the target ID of the asset. This is the internal ID of the target asset.
toExternalIdentity
String
If you want to create or remove a relationship between the asset and another asset, enter the target ID of the asset. This is the external ID of the target asset.
association
String
If you want to create or remove the relationship between the asset and other assets, specify the type of relationship.

Example requests

Create relationship

The following example shows the PATCH request to update an asset by creating an "is related to" relationship between two business terms.
PATCH https://cdgc-api.ebf.infaqa.com/ccgf-contentv2/v1/assets/3375e658-2d20-43bb-a74f-fc1f5ee7b418?scheme=internal
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
{
"operation": "add",
"segment": "relationship",
"items": [
{
"fromIdentity": "3375e658-2d20-43bb-a74f-fc1f5ee7b418",
"toIdentity": "9a6b176a-7492-4810-bf77-62e0107df4e1",
"association": "com.infa.ccgf.models.governance.relatedBusinessTerm"
}
]
},

Delete relationship

The following example shows the PATCH request to delete the "is classified by" relationship between a business term and a metric.
PATCH https://cdgc-api.ebf.infaqa.com/ccgf-contentv2/v1/assets/3375e658-2d20-43bb-a74f-fc1f5ee7b418?scheme=internal
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
{
"operation": "remove",
"segment": "relationship",
"items": [
{
"fromIdentity": "fa1bce9d-2c00-4de3-b3cd-26f5f26b2a29",
"toIdentity": "0c882d48-f4c5-4abb-8017-852efd389978",
"association": "com.infa.ccgf.models.governance.businessTermClassifiedByMetric"
}

Add summary

The following example shows the PATCH request to add the description of a business term.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "add",
"segment": "summary",
"attributes": {
"core.description": "A combination of account number and sort code that represents an individual's account within a particular financial institution."
}
}
]

Replace summary

The following example shows the PATCH request to replace the description of a business term.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "replace",
"segment": "summary",
"attributes": {
"core.description": "A unique combination of an account number and sort code that identifies an individual's account at a specific financial institution."
}
}
]

Remove summary

The following example shows the PATCH request to remove the description of a business term.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "remove",
"segment": "summary",
"attributes": {
"core.description": "A unique combination of an account number and sort code that identifies an individual's account at a specific financial institution"
}
}
]

Add asset properties

The following example shows the PATCH request to mark a business term as critical data element.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "add",
"segment": "selfAttributes",
"attributes": {
"com.infa.ccgf.models.governance.isCDE": true
}
}
]

Add custom attributes

The following example shows the PATCH request to add a custom attribute value to an asset
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json[
{
"operation": "add",
"segment": "customAttributes",
"attributes": {
"com.infa.odin.models.custom.ca_6004001966368974780": "My Custom Attribute Value"
}
}
]

Replace parent

The following example shows the PATCH request to replace the parent of an asset.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "replace",
"attributes": {
"parent": {
"core.externalId": "BTwithParent 1682"
}
}
}
]

Add stakeholder

The following example shows the PATCH request to add a stakeholder to an existing asset.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "add",
"segment": "stakeholdership",
"items": [
{
"core.identity": "4dc44acf-599a-32ec-9796-690f0a990069",
"core.role": [
"lVhW8Etrr2Xh1j30320u40"
]
}
]

Add glossary

The following example shows the PATCH request to add a glossary.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "add",
"segment": "glossary",
"items": [
{
"core.identity": "8d41f699-5ddf-45c7-a11d-f5462791a50c"
},
{
"core.externalId": "BTwithParent 1693",
"core.curationStatus": "ACCEPTED"
}
]
}
]

Replace glossary

The following example shows the PATCH request to update the curation status of the glossary.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "replace",
"segment": "glossary",
"attributes": {
"core.externalId": "BTwithParent 1693",
"core.curationStatus": "REJECTED"
}
}
]

Remove glossary

The following example shows the PATCH request to remove a glossary.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "remove",
"segment": "glossary",
"items": [
{
"core.identity": "8d41f699-5ddf-45c7-a11d-f5462791a50c"
}
]
}
]

Add data classification

The following example shows the PATCH request to add a data classification.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "add",
"segment": "dataClassification",
"items": [
{
"core.externalId": "8397ebd1-228d-4ad8-9baa-41cfb672b167",
"core.curationStatus": "ACCEPTED"
},
{
"core.externalId": "5491a201-8f65-4f17-bb0f-7f6205c44e4c"
},
{
"core.externalId": "c1c46611-5245-4cab-b5c4-07d77a708413"
}
]
}
]

Replace data classification

The following example shows the PATCH request to replace the curation status of a data classification.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "replace",
"segment": "dataClassification",
"items": [
{
"core.externalId": "8397ebd1-228d-4ad8-9baa-41cfb672b167",
"core.curationStatus": "ACCEPTED"
}
]
}
]

Update multiple segments

The following example shows the PATCH request to update multiple segments to an asset.
PATCH https://idmc-api.dm-us.informaticacloud.com/data360/content/v1/assets/TERM-48/?scheme=external
Authorization: Bearer <jwt_token>
Accept: application/json
Content-Type: application/json
Body
[
{
"operation": "replace",
"segment": "summary",
"attributes": {
"core.description": "A unique pair of account number and sort code that identifies an individual’s account at a specific bank."
}
},
{
"operation": "add",
"segment": "selfAttributes",
"attributes": {
"com.infa.ccgf.models.governance.AliasNames": [
"Account Number",
"Automation"
],
"com.infa.ccgf.models.governance.isCDE": true
}
}
]