Add a ticket system
POST
/api/settings/link-types
const url = 'https://forge.example.com/api/settings/link-types';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","linkTemplate":"example","idPattern":"example","newTemplate":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
linkTemplate
required
string
idPattern
required
string
newTemplate
required
null | string
version
required
null | integer | string format: int32
Example generated
{ "name": "example", "linkTemplate": "example", "idPattern": "example", "newTemplate": "example", "version": 1}Responses
Section titled “Responses”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
links
required
integer | string format: int32
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"}default
Section titled “default”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"}