Skip to content

Commit 3f98a70

Browse files
committed
url encoding rest params
1 parent 179ec61 commit 3f98a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ def unarchive_feature_schema_node(self, ontology_id: str,
15841584
Returns:
15851585
bool
15861586
"""
1587-
ontology_endpoint = self.rest_endpoint + "/ontologies/" + ontology_id + '/feature-schemas/' + root_feature_schema_id + '/unarchive'
1587+
ontology_endpoint = self.rest_endpoint + "/ontologies/" + urllib.parse.quote(ontology_id) + '/feature-schemas/' + urllib.parse.quote(root_feature_schema_id) + '/unarchive'
15881588
response = requests.patch(
15891589
ontology_endpoint,
15901590
headers=self.headers,

0 commit comments

Comments
 (0)