diff --git a/postman/Platform-API.postman_collection.json b/postman/Platform-API.postman_collection.json index deec692..ad8f569 100755 --- a/postman/Platform-API.postman_collection.json +++ b/postman/Platform-API.postman_collection.json @@ -740,7 +740,7 @@ "formdata": [ { "key": "method", - "value": "pii-bbox-extraction" + "value": "extract-pii-bounding-boxes" }, { "key": "params", @@ -800,7 +800,7 @@ "formdata": [ { "key": "method", - "value": "text-bbox-extraction" + "value": "extract-text-bounding-boxes" }, { "key": "params", diff --git a/samples/python/platform_api.py b/samples/python/platform_api.py index 3deed2d..969e253 100644 --- a/samples/python/platform_api.py +++ b/samples/python/platform_api.py @@ -123,11 +123,11 @@ def extract_tables(self, file_path: Path) -> dict[str, Any]: def detect_pii(self, file_path: Path, language: str = "en") -> dict[str, Any]: """Detect PII and return bounding boxes.""" - return self._request("extractions", "pii-bbox-extraction", file_path, {"language": language}) + return self._request("extractions", "extract-pii-bounding-boxes", file_path, {"language": language}) def find_text_boxes(self, file_path: Path, texts: list[str]) -> dict[str, Any]: """Find bounding boxes for specified text strings.""" - return self._request("extractions", "text-bbox-extraction", file_path, {"texts": texts}) + return self._request("extractions", "extract-text-bounding-boxes", file_path, {"texts": texts}) def redact(self, file_path: Path, redactions: list[dict]) -> bytes: """Redact specified bounding boxes."""