# オファーチェーンを更新する 特定のオファーチェーンを更新するします。 Endpoint: PUT /v2/project/{project_id}/admin/offer_chain/id/{offer_chain_id} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。 Example: 44056 - `offer_chain_id` (integer, required) オファーチェーンID。 Example: 101 ## Request fields (application/json): - `attribute_conditions` (array) ユーザー属性を検証するための条件。 ユーザー属性が指定されたすべての条件に一致するかどうかに基づいて、オファーチェーンの可用性を決定します。 - `date_end` (string,null) オファーチェーンの終了日です。nullも可能です。もしdate_endがnullの場合、オファーチェーンには期限が設定されません。 Example: "2020-04-15T18:16:00+05:00" - `date_start` (string, required) オファーチェーンの開始日。 Example: "2020-04-15T18:16:00+05:00" - `description` (object,null) アイテムの説明に関するローカライズ用オブジェクト。2文字の小文字の言語コード(例:en)または5文字のロケールコード(例:en-US)のいずれかの形式で値を受け入れます。どちらの形式も入力として受け入れられますが、応答は2文字の小文字の言語コードを返します。同じ言語に対して両方のオプションが提供された場合(例:enとen-US)、最後に提供された値が保存されます。サポートされている言語の完全なリストは、[ドキュメント](/ja/doc/shop-builder/references/supported-languages/)で確認できます。 - `id` (integer) 一意のオファーチェーンID。 Example: 9 - `is_always_visible` (boolean) チェーンがすべてのユーザーに表示されるかどうか: * trueの場合、ユーザーの認証ステータスや属性に関係なく常にチェーンが表示されます。 * falseの場合、個人用設定されたチェーンが見つからない場合にのみチェーンが表示されます。例えば、ユーザーが認証されていない場合や、その属性がパーソナライズされたチェーンと一致しない場合などです。 パーソナライズされたチェーンのコンテキストでのみ適用され、attribute_conditions配列が渡されない場合に使用されます。 Example: true - `is_enabled` (boolean, required) Example: true - `name` (object,null, required) アイテム名に関するローカライズ用オブジェクト。2文字の小文字の言語コード(例:en)または5文字の言語コード(例:en-US)のいずれかの形式で値を受け入れます。どちらの形式も入力として受け入れられますが、応答は2文字の小文字の言語コードを返します。同じ言語に対して両方のオプションが提供された場合(例:enとen-US)、最後に提供された値が保存されます。サポートされている言語の完全なリストは、[ドキュメント](/ja/doc/shop-builder/references/supported-languages/)で確認できます。 - `order` (integer) 配列順序を定義します。 Example: 1 - `recurrent_schedule` (object,null) オファーチェーンのリセット期間。 - `steps` (array, required) - `steps.is_free` (boolean, required) オファーチェーンのステップが無料であるかどうかを示します:trueの場合、ステップは無料オファーチェーンステップを請求するコールを使用して請求する必要があります。falseの場合、有料オファーチェーンステップの注文を作成するコールを使用して購入する必要があります。 - `steps.items` (array, required) - `steps.items.order` (integer,null) オファーチェーンステップの報酬注文。 - `steps.items.quantity` (integer, required) このチェーンステップの報酬アイテム数量。 - `steps.items.sku` (string, required) 一意のアイテムID。SKUには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。 Example: "booster_mega_1" - `steps.step_id` (integer,null) ユニークチェーンステップID。更新時にこれを指定することで、このステップに関するユーザーの進行状況を保持できます。 Example: 10 - `steps.step_number` (integer, required) ステップ番号。 Example: 2 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 1102 - `errorMessage` (string) Example: "[0401-1102]: Unprocessable Entity. The property `property_name` is required" - `errorMessageExtended` (object,null) - `statusCode` (integer) Example: 422 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `errorCode` (integer) Example: 1102 - `errorMessage` (string) Example: "[0401-1102]: Unprocessable Entity. The property `property_name` is required" - `errorMessageExtended` (object,null) - `statusCode` (integer) Example: 422 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 204 fields