Skip to main content
POST
/
google-drives
Create a Google Drive data source
curl --request POST \
  --url https://developer.qaip.com/api/v1/google-drives \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "folder_url": "<string>",
  "service_account_key": "<string>",
  "secret_id": "<string>",
  "rrule": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "folder_url": "<string>",
  "status": "unknown",
  "ingestion_setting_id": "<string>",
  "creation_time": 123,
  "start_time": 123,
  "end_time": 123,
  "error": {
    "title": "<string>",
    "message": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
name
string
required

Name of the Google Drive data source

Maximum string length: 200
folder_url
string
required

Google Drive folder URL

Maximum string length: 2000
service_account_key
string

One-time service account key JSON (mutually exclusive with secret_id)

secret_id
string

ID of a stored secret to use (mutually exclusive with service_account_key)

rrule
string

Recurrence rule (RFC 5545 RRULE). Requires secret_id (not one-time key).

Response

Successfully created Google Drive data source

id
string
required

Google Drive data source ID

name
string
required

Name of the Google Drive ingestion setting

folder_url
string
required

Google Drive folder URL

status
enum<string>
required

Job status

Available options:
unknown,
queued,
not_started,
managed,
starting,
started,
success,
failure,
canceling,
canceled,
deleting,
delete_job_failure
ingestion_setting_id
string

Google Drive ingestion setting ID

creation_time
integer<int64>

Creation time (Unix timestamp in seconds)

start_time
integer<int64>

Job start time (Unix timestamp in seconds)

end_time
integer<int64>

Job end time (Unix timestamp in seconds)

error
object