Skip to content

Commit 5dda8ef

Browse files
committed
updated docs for client method
1 parent b941cef commit 5dda8ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

labelbox/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,16 @@ def remove_feature_schema_from_ontology(self, ontology_id: str,
16101610
If the feature schema is a root level node with associated labels, it will be archived.
16111611
If the feature schema is a nested node in the ontology and does not have associated labels, it will be deleted.
16121612
If the feature schema is a nested node in the ontology and has associated labels, it will not be deleted.
1613+
1614+
Args:
1615+
ontology_id (str): The ID of the ontology.
1616+
feature_schema_id (str): The ID of the feature schema.
1617+
1618+
Returns:
1619+
RemoveFeatureFromOntologyResult: The result of the feature schema removal.
1620+
1621+
Example:
1622+
>>> client.remove_feature_schema_from_ontology(<ontology_id>, <feature_schema_id>)
16131623
"""
16141624
ontology_endpoint = self.rest_endpoint + "/ontologies/" + urllib.parse.quote(ontology_id) + "/feature-schemas/" + urllib.parse.quote(feature_schema_id)
16151625
response = requests.delete(

0 commit comments

Comments
 (0)