---
title: "Create Document Type"
method: POST
path: "/api/declaration-templates/document-types"
tags: ["Declaration Templates (Admin)"]
---

# Create Document Type

`POST /api/declaration-templates/document-types`

Create a tenant-specific document type (TipoDocsNomeModulo) so the user can
add one inline when no existing type matches. The new type is scoped to the
caller's company (company_id) and is therefore invisible to other tenants.

Dedupe: if a global or own-company type with the same name + module already
exists, that one is returned instead of creating a duplicate.

Body:
    name: str (required)
    id_modulo: int (required) — 5 (Contratos), 11 (Viaturas) or 12 (Clientes)

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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