curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>",
"teams": [
"<string>"
],
"repository": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({api_key: '<string>', teams: ['<string>'], repository: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider}"
payload = {
"api_key": "<string>",
"teams": ["<string>"],
"repository": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}Connect an issue tracker
Connects Linear or GitHub Issues with the customer’s own key (no Hookie OAuth app), or replaces the key. Needs a project or workspace admin; refused to connected agents (agent_not_permitted). The key is checked with the tracker (issue_key_rejected when it is refused), encrypted, and never returned. Hookie creates an endpoint in the project (dataset linear_issues or github_issues) that verifies the tracker’s signature, registers the tracker’s webhook on it when the key may (a Linear admin’s key; a token that can manage the repository’s webhooks), and pulls up to 300 recently updated issues. When it cannot register the webhook, webhook_setup carries the URL (and, for GitHub, the secret) to add by hand, once.
curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>",
"teams": [
"<string>"
],
"repository": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({api_key: '<string>', teams: ['<string>'], repository: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/integrations/{provider}"
payload = {
"api_key": "<string>",
"teams": ["<string>"],
"repository": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
Response
Successful operation
The response is of type object.