curl --request POST \
--url https://cloud.onyx.app/api/manage/admin/connector \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source": "ingestion_api",
"input_type": "load_state",
"connector_specific_config": {},
"refresh_freq": 123,
"prune_freq": 123,
"indexing_start": "2023-11-07T05:31:56Z",
"access_type": "public",
"groups": [
123
]
}'
{
"id": 123,
"credential": {
"credential_json": {},
"admin_public": true,
"source": "ingestion_api",
"name": "<string>",
"curator_public": false,
"groups": [
123
],
"is_user_file": false,
"id": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_email": "<string>",
"time_created": "2023-11-07T05:31:56Z",
"time_updated": "2023-11-07T05:31:56Z"
}
}
curl --request POST \
--url https://cloud.onyx.app/api/manage/admin/connector \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"source": "ingestion_api",
"input_type": "load_state",
"connector_specific_config": {},
"refresh_freq": 123,
"prune_freq": 123,
"indexing_start": "2023-11-07T05:31:56Z",
"access_type": "public",
"groups": [
123
]
}'
{
"id": 123,
"credential": {
"credential_json": {},
"admin_public": true,
"source": "ingestion_api",
"name": "<string>",
"curator_public": false,
"groups": [
123
],
"is_user_file": false,
"id": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_email": "<string>",
"time_created": "2023-11-07T05:31:56Z",
"time_updated": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type object
.
Was this page helpful?