legacy-knowledge-base
公開されました Sep. 10, 2025

Specifications APIはUpsert操作に対応していない

written-by

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Specification APIで、タイトル/ラベルの翻訳を追加できない。
  • 再現するための手順
    1. POST 仕様書APIエンドポイント(/o/headless-commerce-admin-catalog/v1.0/specifications)
    を使用して、仕様書を作成する。
    {
    "key": "demo-abc",
    "title": {
    "en_US": "Demo Specification ABC"
    }

    }
    2. 再度、同じSpecification APIエンドポイントに、以下のJSONをPOST します。
    {
    "key": "demo-abc",
     "title": {
      "en_US": "Demo Specification ABC"
    "es_ES": "Especificación de Demostración ABC" }
    }
    期待される動作 ユーザーは、仕様書に2番目の翻訳を追加することもできます。
    実際の動作: 仕様書に2つ目の訳語を追加することができない。 以下のようなエラーが出ます。
    {
    "errorDescription": "Specification option key must not be duplicated",
    "message": "null",
    "status": 400
    }

Environment

  • Liferay DXP 7.3
  • Commerce 3.0

解決策

  • 観測された動作は、既知の問題/バグです。
  • この問題に対してHotfixが必要な場合は、パッチの詳細を添付して、Hotfixをリクエストするサポートチケットを作成してください。
  • Liferay DXPへのFix PackとHotfixのインストール それぞれの環境でのHotfixのインストールをご案内します。
did-this-article-resolve-your-issue

legacy-knowledge-base