Add a GitHub repo for content indexing.
cURL
curl --request POST \ --url https://api.example.com/api/content-sources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "repo_full_name": "<string>", "branch": "main" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "repo_full_name": "<string>", "branch": "<string>", "index_status": "<string>", "last_indexed_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "error_message": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
^[a-zA-Z0-9._-]+/[a-zA-Z0-9._-]+$
"owner/repo"
255
^[a-zA-Z0-9._/\-]+$
Successful Response