apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/autolinks — GitHub API

GitHub playground

Create an autolink reference for a repository

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • key_prefix · required · string — This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit.
  • url_template · required · string — The URL must contain `<num>` for the reference number. `<num>` matches different characters depending on the value of `is_alphanumeric`.
  • is_alphanumeric · optional · boolean — Whether this autolink reference matches alphanumeric characters. If true, the `<num>` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.