# 有効期間の設定 プロモーションが有効な日付/時刻の範囲を設定します。プロモーションが読み取り専用 (read_only = true) の場合、既存の期間を編集することはできませんが、新しい期間を追加することはできます。 通知APIコールにproject_idパスパラメータが含まれていないため、会社の全プロジェクトで有効なAPIキーを使用して認可を設定する必要があります。 Endpoint: PUT /merchants/{merchant_id}/promotions/{promotion_id}/periods Version: 2.0 Security: basicAuth ## Path parameters: - `merchant_id` (integer, required) マーチャントID。 - `promotion_id` (integer, required) プロモーションID。 ## Request fields (application/json): - `periods` (array) 日時範囲。 - `periods.from` (string) 期間開始日。 - `periods.offset` (string) リスト生成元のエレメントの番号です(カウントは0から始まります)。 - `periods.to` (string) 期間終了日。 ## Response 204 fields