Use the appendTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to add the terms all-in-one.
The qualifiedName of the asset on which to add the terms.
A list of term references. Each reference can be to either a term by its GUID or its qualifiedName. At the completion of this code, the terms in this list will be added to any other terms that are already linked to the asset.
Use the asset.append_terms() method, which will construct the necessary
request and call the necessary API(s) to add the terms all-in-one.
The asset_type of the asset on which to add the terms.
The qualified_name of the asset on which to add the terms.
Note: Alternatively the parameter name guid could have been
specified along with the guid of the asset on which to add the terms.
A list of term references. Each reference can be to either a term by its GUID
or its qualified_name. At the completion of this code, the terms in this list will
be added to any other terms that are already linked to the asset.
The asset returned by this call will be a mininmal asset and will not contain
any terms. If you need an asset which contains the terms retrieve it via
the asset.get_by_guid or asset.get_by_qualified_name methods.
Use the appendTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to add the terms all-in-one.
The qualifiedName of the asset on which to add the terms.
A list of term references. Each reference can be to either a term by its GUID or its qualifiedName. At the completion of this code, the terms in this list will be added to any other terms that are already linked to the asset.
You must provide the exact type name for the asset (case-sensitive).
You must provide the exact name of the asset (case-sensitive).
You must provide the exact qualifiedName of the asset (case-sensitive).
Provide the details of the terms to assign to the asset in the meanings array. Each reference to a term must include the typeName (always AtlasGlossaryTerm) and guid for the term.
Remember you will need to first retrieve the existing asset to retrieve the full set of existing term assignments to append onto.
If you are applying the terms to a column, you need to give the name of the column as well.
You can either specify the terms as a list of GUIDs (each GUID refers to one term).
Or you can specify the terms as a list of qualifiedNames.
Or you can specify the terms as a list of human-readable names.
Only works for unique term names
If you have a term with the same name defined in multiple glossaries, which is possible, any such term listed in termNames will be ignored. In these cases you must use termGuids or termQualifiedNames to link to such terms.
Use the replaceTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to replace the terms on the asset all-in-one.
The qualifiedName of the asset for which to replace the terms.
The human-readable name of the asset for which to replace the terms.
A list of term references. Each reference can be to either a term by its GUID or its qualifiedName. After the completion of this code, only the terms in this list will be assigned to the asset.
Use the asset.replace_terms() method, which will construct the necessary
request and call the necessary API(s) to replace the terms all-in-one.
The asset_type of the asset on which to replace the terms.
The qualified_name of the asset on which to replace the terms.
Note: Alternatively the parameter name guid could have been
specified along with the guid of the asset on which to replace the terms.
A list of term references. Each reference can be to either a term by its GUID
or its qualified_name. At the completion of this code, the terms in this list wil
replace any other terms that are already linked to the asset.
The asset returned by this call will be a mininmal asset and will not contain
any terms. If you need an asset which contains the terms retrieve it via the
asset.get_by_guid or asset.get_by_qualified_name methods.
Use the replaceTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to replace the terms on the asset all-in-one.
The qualifiedName of the asset for which to replace the terms.
The human-readable name of the asset for which to replace the terms.
A list of term references. Each reference can be to either a term by its GUID or its qualifiedName. After the completion of this code, only the terms in this list will be assigned to the asset.
You must provide the exact type name for the asset (case-sensitive).
You must provide the exact name of the asset (case-sensitive).
You must provide the exact qualifiedName of the asset (case-sensitive).
Provide the details of the terms to assign to the asset in the meanings array. Each reference to a term must include the typeName (always AtlasGlossaryTerm) and guid for the term. After the completion of this code, only the terms in this list will be assigned to the asset.
Use the removeTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to remove the terms all-in-one.
The qualifiedName of the asset from which to remove the terms.
A list of term references. Each reference must be to a term by its GUID. At the completion of this code, the terms in this list will be removed from those linked to the asset.
Use the asset.remove_terms() method, which will construct the necessary
request and call the necessary API(s) to remove the terms on the asset all-in-one.
The asset_type of the asset on which to remove the terms.
The qualified_name of the asset on which to remove the terms.
Note: Alternatively the parameter name guid could have been
specified along with the guid of the asset on which to remove the terms.
A list of term references. Each reference must be to a term by its GUID.
At the completion of this code, the terms in this list will be removed from those linked to the asset.
Use the removeTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to remove the terms all-in-one.
The qualifiedName of the asset from which to remove the terms.
A list of term references. Each reference must be to a term by its GUID. At the completion of this code, the terms in this list will be removed from those linked to the asset.
You must provide the exact type name for the asset (case-sensitive).
You must provide the exact name of the asset (case-sensitive).
You must provide the exact qualifiedName of the asset (case-sensitive).
Provide the details of the terms to assign to the asset in the meanings array. Each reference to a term must include the typeName (always AtlasGlossaryTerm) and guid for the term.
Remember you will need to first retrieve the existing asset to retrieve the reduced set of term assignemnts that should remain, which should not include the ones you want to remove.
Use the replaceTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to replace (remove) the terms on the asset all-in-one.
The qualifiedName of the asset from which to remove the terms.
The human-readable name of the asset from which to remove the terms.
A null as the list of term references. This will replace any existing terms on the asset with no terms at all — in other words, it will remove all terms from the asset.
Use the asset.replace_terms() method, which will construct the necessary
request and call the necessary API(s) to replace (remove) the terms on the asset all-in-one.
The asset_type of the asset on which to remove the terms.
The qualified_name of the asset on which to remove the terms.
Note: Alternatively the parameter name guid could have been
specified along with the guid of the asset on which to remove the terms.
An empty list of term references. This will replace any existing terms
on the asset with no terms at all — in other words, it will remove all terms from the asset.
Use the replaceTerms() helper method, which for most objects requires a minimal set of information. This helper method will construct the necessary request and call the necessary API(s) to replace (remove) the terms on the asset all-in-one.
The qualifiedName of the asset from which to remove the terms.
The human-readable name of the asset from which to remove the terms.
A null as the list of term references. This will replace any existing terms on the asset with no terms at all — in other words, it will remove all terms from the asset.
If you are applying the terms to a column, you need to give the name of the column as well.
You can either specify the terms as a list of GUIDs (each GUID refers to one term).
Or you can specify the terms as a list of qualifiedNames.
Or you can specify the terms as a list of human-readable names.
Only works for unique term names
If you have a term with the same name defined in multiple glossaries, which is possible, any such term listed in termNames will be ignored. In these cases you must use termGuids or termQualifiedNames to link to such terms.
Directly chain the assignedTerm enrichment methods to add the linked terms. Note that we only need a Reference to the linked term, in these examples the type and GUID of the term.
Call the save() method to actually create the asset (with its linked terms).
The response will include that single asset that was created...
... and the two linked terms that were updated, along with the bucket the object is created within.
Provide a list of the terms to be linked to the asset. Note that we only need a Reference to the linked term, in these examples the type and GUID of the term.
Call the save() method to actually create the asset (with its linked terms).
The response will include the single asset created
Directly chain the assignedTerm enrichment methods to add the linked terms. Note that we only need a Reference to the linked term, in these examples the type and GUID of the term.
Call the save() method to actually create the asset (with its linked terms).
The response will include that single asset that was created...
... and the two linked terms that were updated, along with the bucket the object is created within.
You must provide the exact type name for the asset (case-sensitive).
You must provide the exact name of the asset (case-sensitive).
You must provide the exact qualifiedName of the asset (case-sensitive).
Provide the details of the terms to assign to the asset in the meanings array. Each reference to a term must include the typeName (always AtlasGlossaryTerm) and guid for the term. After the completion of this code, only the terms in this list will be assigned to the asset.