---
title: "Creates a document type for system"
method: POST
path: "/system/document-types"
tags: ["System Document Types"]
---

# Creates a document type for system

`POST /system/document-types`

## Request body

- SystemDocumentTypeBodyDef — system document type details
  - `name` string, required
  - `description` string, required
  - `allowed_extensions` string[], required
  - `max_size_bytes` integer

## Response `201`

The created system document types record

- SystemDocumentTypeResponseDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `name` string, required
  - `description` string, required
  - `allowed_extensions` string[], required
  - `max_size_bytes` integer, required
  - `allowed_mime_types` string[], required

## Other responses

- `400` — Validation errors caused by missing or invalid headers, paths
- `401` — Failed to authenticate the user making the request
- `default` — Server error occurred

---

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