Skip to content

Add a ticket system

POST
/api/settings/link-types
curl --request POST \
--url https://forge.example.com/api/settings/link-types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "linkTemplate": "example", "idPattern": "example", "newTemplate": "example", "version": 1 }'

linkTemplate is a web address with {id} where a ticket’s id goes; idPattern is a regular expression matched against the whole id; newTemplate, optional, is the address of the system’s own new-ticket screen with {title} and {body}. Only web addresses, with the host written out. For administrators.

Media typeapplication/json
object
name
required
string
linkTemplate
required
string
idPattern
required
string
newTemplate
required
null | string
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"name": "example",
"linkTemplate": "example",
"idPattern": "example",
"newTemplate": "example",
"version": 1
}

OK

Media typeapplication/json
object
id
required
string format: uuid
name
required
string
linkTemplate
required
string
idPattern
required
string
newTemplate
required
null | string
appliesTo
required
string
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
links
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
updatedAt
required
string format: date-time

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"linkTemplate": "example",
"idPattern": "example",
"newTemplate": "example",
"appliesTo": "example",
"version": 1,
"links": 1,
"updatedAt": "2026-04-15T12:00:00Z"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}