Skip to main content
POST
/
ee
/
connectors
/
{connector_type}
/
ingest-repository
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const response = await client.ee.connectors.ingestRepository('connector_type', { repo_path: 'repo_path' });

console.log(response);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

authorization
string

Path Parameters

connector_type
string
required

Body

application/json
repo_path
string
required

Repository path in the format "owner/repo".

connector_type
string
default:github
folder_name
string | null

Optional Morphik folder for the ingested repository documents.

metadata
Metadata · object

Metadata applied to each document created from the repository.

include_patterns
string[] | null

Optional glob patterns restricting which files are ingested.

ignore_patterns
string[] | null

Optional glob patterns for files that should be skipped.

compress
boolean
default:true

When true, package repository files before uploading to Morphik.

force
boolean
default:false

Re-ingest the repository even if it was previously processed.

Response

Successful Response