Monica
Log in
API v1
v1
View as Markdown

Unlink a GitHub issue from a support request

DELETE /api/v1/admin/support-requests/{supportRequest}/issue-links/{issueLink}

Remove the link between a request and a GitHub issue. The administrators’ history of the request keeps that it was linked, and the issue can be linked again.

Only an administrator of this instance can use these endpoints, and only with an API key that carries the administration scope by name. Anybody else, including an administrator whose key does not carry it, gets 404 as though the endpoint did not exist.

Path parameters

Sent as JSON. Anything not listed here is ignored.

supportRequest uuid Required

The id of the request, of any account on the instance.

issueLink uuid Required

The id of the link, as issue_links gives it.

Returns

Nothing. A link already unlinked, or one of another request, answers 404.

Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.

DELETE
curl https://my.monicahq.com/api/v1/admin/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/issue-links/4d2b9e71-8c3a-4f56-a0e7-61f5c9b28d03 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/admin/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/issue-links/4d2b9e71-8c3a-4f56-a0e7-61f5c9b28d03', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/admin/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/issue-links/4d2b9e71-8c3a-4f56-a0e7-61f5c9b28d03');
Response 204

No content.

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.