Skip to main content
PATCH
/
files
/
{id}
PATCH /files/{id}
curl --request PATCH \
  --url https://api.indoralabs.com/files/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "reviewStatus": "pending",
  "department": "<string>",
  "tags": [
    "<string>"
  ],
  "relevancyScore": 50,
  "pages": 123,
  "duration": 123
}
'
{
  "id": "6ff9fff2-027a-48a0-a5c1-bd2c6e5c03e7",
  "org_id": "743db90f-7e76-49f7-8d4e-5f42a16efc06",
  "name": "foia_correspondence.mbox",
  "size_bytes": 997,
  "mime_type": "application/octet-stream",
  "department": "Unknown",
  "tags": "{}",
  "relevancy_score": 0,
  "review_status": "pending",
  "pages": null,
  "duration_seconds": null,
  "s3_bucket": "foia-dev-andromeda",
  "s3_key": "743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox",
  "created_by": "ab99f432-1141-43bf-a826-ea015838179f",
  "uploaded_at": "2025-08-29 10:28:48.713 -0500",
  "updated_at": "2025-08-29 10:28:48.713 -0500",
  "s3_bucket_original": "foia-dev-andromeda",
  "s3_key_original": "743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox",
  "s3_bucket_parsed": null,
  "s3_key_parsed": null
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

The unique file ID to update.

Body

application/json
reviewStatus
enum<string>

Current review state of the file.

Available options:
pending,
relevant,
irrelevant,
redacted
department
string

Department responsible for the file.

tags
string[]

List of tags or keywords assigned to the file.

relevancyScore
integer

Numeric score indicating relevancy confidence.

Required range: 0 <= x <= 100
pages
integer | null

Total number of pages (if applicable).

duration
integer | null

Total duration in seconds for media files.

Response

File updated successfully.

Schema inferred from files dataset.

id
string<uuid>

id field from files09192347.

Example:

"6ff9fff2-027a-48a0-a5c1-bd2c6e5c03e7"

org_id
string<uuid>

org_id field from files09192347.

Example:

"743db90f-7e76-49f7-8d4e-5f42a16efc06"

name
string

name field from files09192347.

Example:

"foia_correspondence.mbox"

size_bytes
integer

size_bytes field from files09192347.

Example:

997

mime_type
string

mime_type field from files09192347.

Example:

"application/octet-stream"

department
string

department field from files09192347.

Example:

"Unknown"

tags
string

tags field from files09192347.

Example:

"{}"

relevancy_score
integer

relevancy_score field from files09192347.

Example:

0

review_status
string

review_status field from files09192347.

Example:

"pending"

pages
number

pages field from files09192347.

duration_seconds
number

duration_seconds field from files09192347.

s3_bucket
string

s3_bucket field from files09192347.

Example:

"foia-dev-andromeda"

s3_key
string

s3_key field from files09192347.

Example:

"743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox"

created_by
string<uuid>

created_by field from files09192347.

Example:

"ab99f432-1141-43bf-a826-ea015838179f"

uploaded_at
string

uploaded_at field from files09192347.

Example:

"2025-08-29 10:28:48.713 -0500"

updated_at
string

updated_at field from files09192347.

Example:

"2025-08-29 10:28:48.713 -0500"

s3_bucket_original
string

s3_bucket_original field from files09192347.

Example:

"foia-dev-andromeda"

s3_key_original
string

s3_key_original field from files09192347.

Example:

"743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox"

s3_bucket_parsed
string

s3_bucket_parsed field from files09192347.

Example:

"foia-dev-andromeda-parse"

s3_key_parsed
string

s3_key_parsed field from files09192347.

Example:

"parsed/743db90f-7e76-49f7-8d4e-5f42a16efc06/Zm9pYS1kZXYtYW5kcm9tZWRhLzc0M2RiOTBmLTdlNzYtNDlmNy04ZDRlLTVmNDJhMTZlZmMwNi9yYXcvMmUxZjE5NzUtNDBjYy00YmY1LThmNzctN2VjYTkwMjhmMjFjL0Rpc3BhdGNoIEMyMy0wMTE1OC5wZGY.json"