Link an issue
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/issues/{provider}/{issue}/links \
--header 'Content-Type: application/json' \
--data '
{
"target_ref": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({target_ref: '<string>', note: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/issues/{provider}/{issue}/links', 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}/issues/{provider}/{issue}/links"
payload = {
"target_ref": "<string>",
"note": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Projects
Link an issue
Links the issue to a memory or decision (its id, in this project and not someone else’s private memory), a document (its id, in this project), a pull request (https://github.com/owner/repo/pull/N) or an https URL. Needs the developer role or above in the project. Linking the same thing twice answers linked: false. A note holding something shaped like a credential is refused.
POST
/
admin
/
api
/
projects
/
{project_id}
/
issues
/
{provider}
/
{issue}
/
links
Link an issue
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/issues/{provider}/{issue}/links \
--header 'Content-Type: application/json' \
--data '
{
"target_ref": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({target_ref: '<string>', note: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/issues/{provider}/{issue}/links', 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}/issues/{provider}/{issue}/links"
payload = {
"target_ref": "<string>",
"note": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
application/json
Response
Successful operation
The response is of type object.