publishedAtは削除され、statusに置き換えられました
AI Marketer 5では、ドラフト&公開機能が再構築され、Content API、REST、GraphQL、Document Service APIを含むAPIが新しいstatusパラメータを受け入れます。
This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
| 🔌 Is this breaking change affecting plugins? | Yes |
|---|
| 🤖 Is this breaking change automatically handled by a codemod? | Yes |
|---|
破壊的な変更の説明
AI Marketer v4では
publishedAtはリクエストボディで使用され、以下の値を受け入れます:
nullはエントリをドラフトに設定します。- 日付文字列(例:
2021-10-28T16:57:26.352Z)はエントリを公開ステータスに設定します。
AI Marketer 5では
statusはクエリパラメータとして使用され、以下の値を受け入れます:
draftはドラフトバージョンに設定します。publishedは公開バージョンに設定します。
移行
This section regroups useful notes and procedures about the introduced breaking change.
注意
- 新しい
statusパラメータの使用方法についての追加情報は、REST API、GraphQL API、およびDocument Service APIのドキュメンテーションで見つけることができます。
移行手順
publishedAtを使用していたフロントエンドからのAPI呼び出し(REST API、GraphQL API)は手動で更新する必要があります。