---
title: "Get a Template By The Service Record ID"
method: GET
path: "/service-records/{recordId}/template"
tags: ["Templates", "Service Records"]
---

# Get a Template By The Service Record ID

`GET /service-records/{recordId}/template`

Allows to get a template by the service record id.

## Response `200`

Service record template is found and returned.

- SrTemplate
  - `id` integer, required — Unique ID of the service record template.
  - `name` string, required — Service record template's name.
  - `srType` 'incident' | 'problem' | 'request' | 'change', required
  - `visibleInSelfServicePortal` boolean, required — Indicates whether the given template is visible in Serlf-Service Portal.
  - `fields` SrTemplateField[], required — A list of service record fields supported by the given template.
    - `id` integer, required — Id of the service record field.
    - `fieldName` string, required — Name of the service record field.
    - `required` boolean, required — Indicates whether the given field is required to be set when a service record creation.
    - `readOnly` boolean, required — Indicates whether the given field is read-only.
    - `customColumn` boolean, required — Indicates whether the given field represents a service record custom column field.

## Other responses

- `401` — Authentication information is missing or invalid
- `404` — The specified resource was not found

---

[API](https://skmtc.net/sysaid/apis/sysaid-public-api.md) · [All operations](https://skmtc.net/sysaid/apis/sysaid-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sysaid/sysaid-public-api/revisions/38a43a1b2981/schema)
