Skip to main content
PATCH
/
text-detections
/
file
/
{fileId}
/
rect
Create or update a single redaction box
curl --request PATCH \
  --url https://api.indoralabs.com/text-detections/file/{fileId}/rect \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "rect": {
    "page": 123,
    "x": 123,
    "y": 123,
    "w": 123,
    "h": 123,
    "label": "<string>",
    "id": "<string>",
    "type": "<string>",
    "reason": "<string>",
    "spanIds": [
      "<string>"
    ],
    "source": "auto"
  }
}
'
[
  {
    "id": "<string>",
    "page": 123,
    "x": 123,
    "y": 123,
    "w": 123,
    "h": 123,
    "label": "<string>",
    "type": "<string>",
    "reason": "<string>",
    "spanIds": [
      "<string>"
    ],
    "source": "auto"
  }
]

Authorizations

x-api-key
string
header
required

Path Parameters

fileId
string<uuid>
required

UUID of the file whose redaction details will be modified.

Body

application/json
rect
object
required

Response

Redaction details updated successfully.

id
string
page
number
x
number
y
number
w
number
h
number
label
string
type
string
reason
string
spanIds
string[]
source
enum<string>
Available options:
auto,
manual