Median

PATCH /tasks/settings

Updated Oct 1, 20261 minute read

Update board settings

Renaming the prefix renames every key on the board, so a commit message naming an old one stops matching. Repositories need the GitHub account that owns them connected in the dashboard, or the request fails with github_not_connected. The Linear team is set in the Tasks app. Admins and owners only.

Part of Tasks.

Request body

application/json, required.

FieldTypeRequiredDescription
keyPrefixstringNoUp to eight letters or numbers, starting with a letter.
moveFromCodebooleanNo
githubRepoanyNoowner/repo where GitHub issues for cards are opened. null stops opening them.
watchRepostringNoowner/repo to start reading commits and pull requests for keys.
unwatchRepostringNoowner/repo to stop reading. repo_not_found when it is not being read.

Responses

StatusDescription
200The settings, as they now stand.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
keyPrefixstringNoThe letters every key wears.
linearTeamobjectNo
linearTeam.idstringNo
linearTeam.keystringNo
linearTeam.namestringNo
githubRepoanyNo"owner/repo", where issues for cards are opened.
codeReposstring[]NoRepositories whose commits and pull requests are read for keys.
moveFromCodebooleanNoWhether a merged pull request or a finishing commit may move a card.
boardUrlanyNo

Example request

curl -X PATCH https://api.median.sh/v1/tasks/settings \
  -H "Authorization: Bearer $BEARER_AUTH" \
  -H "content-type: application/json" \
  -d '{"keyPrefix":"MED"}'

Still need help?

    Esc