---
title: "Get a test type. Roles: admin, member."
method: GET
path: "/api/test-types/{testTypeId}"
tags: ["Tests"]
---

# Get a test type. Roles: admin, member.

`GET /api/test-types/{testTypeId}`

## Path parameters

- `testTypeId` integer, required

## Response `200`

OK

- TestTypeResponseTestTypeFull
  - `success` boolean
  - `error` string
  - `testType` TestTypeFull
    - `audit` Audit
      - `createdTime` string, date-time
      - `modifiedTime` string, date-time
      - `modifiedBy` string
    - `testTypeId` integer
    - `membershipId` integer
    - `code` string
    - `name` string
    - `description` string
    - `external` boolean
    - `testVariables` TestVariableCore[]
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `testVariableId` integer
      - `uomId` integer
      - `code` string
      - `contextCode` 'STEP' | 'TEST'
      - `datatypeCode` 'BOOLEAN' | 'DATE' | 'DATETIME' | 'HTML' | 'NUMBER' | 'STRING' | 'TIME'
      - `required` boolean
      - `name` string
      - `abbr` string
      - `seq` integer
      - `numScale` integer
    - `stepVariables` TestVariableCore[]
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `testVariableId` integer
      - `uomId` integer
      - `code` string
      - `contextCode` 'STEP' | 'TEST'
      - `datatypeCode` 'BOOLEAN' | 'DATE' | 'DATETIME' | 'HTML' | 'NUMBER' | 'STRING' | 'TIME'
      - `required` boolean
      - `name` string
      - `abbr` string
      - `seq` integer
      - `numScale` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/mobilecoach/apis/untitled-api.md) · [All operations](https://skmtc.dev/mobilecoach/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobilecoach/untitled-api/revisions/f2568e11c0ab/schema)
