---
title: "Create a company-specific document type"
method: POST
path: "/api/documents-test/types"
tags: ["documents-test"]
---

# Create a company-specific document type

`POST /api/documents-test/types`

Create a tenant-specific document type (TipoDocsNomeModulo) so users can add
one inline from the Documentos tab when no existing type matches. Scoped to
the caller's company (invisible to other tenants). Dedupes on name+module
(returns the existing global/own type instead of a duplicate).

Body: { name: str, id_modulo: int }

## 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)
