> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alforse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 契約設定

> カスタム契約タイプとライフサイクルテンプレートを管理します。

契約設定エンドポイントは契約タイプとライフサイクルテンプレートを管理します。業務 code は規約に従う必要があります。

| エンドポイント                                                             | 本文/パラメータ                                                              | 権限                                |
| ------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------- |
| `GET /contract-config/catalog`                                      | —                                                                     | `contract_view view`              |
| `POST /contract-config/types`                                       | `code, name, category, fieldSchema, defaultRules`                     | `admin edit + workflowAutomation` |
| `PATCH /contract-config/types/:id`                                  | `一部のタイプフィールド`                                                         | `admin edit + workflowAutomation` |
| `POST /contract-config/lifecycle/templates/:templateId/stages`      | `code, name, category, locksCoreFields, completionRules`              | `admin edit + workflowAutomation` |
| `PATCH /contract-config/lifecycle/stages/:id`                       | `一部の段階フィールド`                                                          | `admin edit + workflowAutomation` |
| `POST /contract-config/lifecycle/templates/:templateId/transitions` | `code, name, fromStageCode, toStageCode, requiredControl, conditions` | `admin edit + workflowAutomation` |
| `PATCH /contract-config/lifecycle/transitions/:id`                  | `一部の遷移フィールド`                                                          | `admin edit + workflowAutomation` |
