---
updatedAt: 2026-04-22T09:48:12.000Z
agentTools:
  projectIndex: https://developers.modusign.co.kr/llms.txt
---

# 문서 메타데이터 변경

기존의 메타데이터를 인자로 받은 메타데이터로 모두 대체합니다.  
빈 배열일 경우 기존 메타데이터를 모두 삭제합니다.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/documents/{documentId}/metadatas": {
      "put": {
        "description": "기존의 메타데이터를 인자로 받은 메타데이터로 모두 대체합니다.  \n빈 배열일 경우 기존 메타데이터를 모두 삭제합니다.",
        "operationId": "DocumentController_updateMetadata",
        "parameters": [
          {
            "name": "documentId",
            "required": true,
            "in": "path",
            "description": "문서 ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentMetadataRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentMetadataResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          },
          {
            "Bearer": []
          }
        ],
        "summary": "문서 메타데이터 변경",
        "tags": [
          "USER API"
        ]
      }
    }
  },
  "info": {
    "title": "MODUSIGN API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.modusign.co.kr",
      "description": "production"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "Basic": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "DocumentMetadataRequestDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "description": "메타데이터 키"
          },
          "value": {
            "type": "string",
            "maxLength": 80,
            "description": "메타데이터 값"
          }
        },
        "required": [
          "key"
        ]
      },
      "UpdateDocumentMetadataRequestDto": {
        "type": "object",
        "properties": {
          "metadatas": {
            "maxItems": 10,
            "description": "메타데이터 리스트. 기존 리스트를 대체합니다. 최대 10개까지 등록 가능 \n(응답의 메타데이터는 순서가 보장되지 않습니다)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentMetadataRequestDto"
            }
          }
        },
        "required": [
          "metadatas"
        ]
      },
      "DocumentMetadataResponseDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "메타데이터 키"
          },
          "value": {
            "type": "string",
            "description": "메타데이터 값"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "UpdateDocumentMetadataResponseDto": {
        "type": "object",
        "properties": {
          "metadatas": {
            "description": "메타데이터 리스트(응답의 메타데이터는 순서가 보장되지 않습니다)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentMetadataResponseDto"
            }
          }
        },
        "required": [
          "metadatas"
        ]
      }
    }
  }
}
```