Skip to main content
POST
/
local-file-groups
Python
import os
from qaip import Qaip

client = Qaip(
    api_key=os.environ.get("QAIP_API_KEY"),  # This is the default and can be omitted
)
local_file_group = client.local_file_groups.create(
    files=[b"Example data"],
    last_modified=["string"],
    name="name",
)
print(local_file_group.source_group_id)
{
  "source_group_id": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

multipart/form-data
name
string
required

Name of the local file group

Maximum string length: 200
files
file[]
required

Files to upload

Required array length: 1 - 2000 elements
last_modified
string[]
required

Last modified timestamps in Unix epoch milliseconds (integer) for each file (same order and count as files). For example, 1709971200000 represents 2024-03-09T12:00:00Z.

Required array length: 1 - 2000 elements
chunk_metadata_keys
string

JSON array of chunk metadata key configurations. Each element is an object with "key" (string) and "type" (one of "string", "integer", "float", "date", "datetime"). Example: [{"key":"author","type":"string"},{"key":"page_number","type":"integer"}]

Response

Successfully created local file group

source_group_id
string
required

The ID of the created source group