Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/manual/コンテンツに自動付与される値.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ id:コンテンツのID
===========

作成したコンテンツのIDです。[コンテンツIDの設定](/manual/content-id-setting)に沿った文字列で構成されます。
コンテンツIDは、[管理画面上で編集](https://document.microcms.io/manual/edit-content#hcc742bfc7e)することができます。設定可能な文字数は、1文字〜50文字です。
コンテンツIDは、[管理画面上で編集](/manual/edit-content#hcc742bfc7e)することができます。設定可能な文字数は、1文字〜50文字です。
また、APIごとに一意な値になるため、スラッグ(URLの一部の文字列)として利用することもできます。

![](https://images.microcms-assets.io/assets/d6af1616730544a596d299c20834f460/ee8231bc7345475785025b344e6c508d/CleanShot%202024-08-22%20at%2016.51.46%402x.png)
Expand Down Expand Up @@ -48,20 +48,20 @@ updatedAt:コンテンツの更新日時
* [下書きの破棄]ボタンをクリックしたとき
* [下書きに戻す]ボタンをクリックしたとき
* [公開終了にする]ボタンをクリックしたとき
* [公開開始予約/公開停止予約](https://document.microcms.io/manual/edit-content#hb30313e224)により、公開状態が変化したとき
* [コンテンツIDを変更](https://document.microcms.io/manual/edit-content#hcc742bfc7e)したとき
* [公開開始予約/公開終了予約](/manual/edit-content#hb30313e224)により、公開状態が変化したとき
* [コンテンツIDを変更](/manual/edit-content#hcc742bfc7e)したとき

### APIでの操作

#### コンテンツAPI

* [POST API](https://document.microcms.io/content-api/post-content)でコンテンツを登録したとき
* [PUT API](https://document.microcms.io/content-api/put-content)でコンテンツを登録したとき
* [PATCH API](https://document.microcms.io/content-api/patch-content)でコンテンツを更新したとき
* [POST API](/content-api/post-content)でコンテンツを登録したとき
* [PUT API](/content-api/put-content)でコンテンツを登録したとき
* [PATCH API](/content-api/patch-content)でコンテンツを更新したとき

#### マネジメントAPI

* [ステータス変更](https://document.microcms.io/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)
* [ステータス変更](/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)



Expand All @@ -79,18 +79,18 @@ publishedAt:コンテンツの公開日時

* [公開]ボタンをクリックしたとき(※「公開中かつ下書き中」のコンテンツを除く)
* [再公開]ボタンをクリックしたとき
* 管理画面上で[任意の公開日時に編集](https://document.microcms.io/manual/edit-content#h03e8d39397)したとき
* 管理画面上で[任意の公開日時に編集](/manual/edit-content#h03e8d39397)したとき

### APIでの操作

#### コンテンツAPI

* [POST API](https://document.microcms.io/content-api/post-content)でコンテンツを登録したとき(※ [status=draft パラメータ](https://document.microcms.io/content-api/post-content#h1276dbba7e)が付与された場合を除く)
* [PUT API](https://document.microcms.io/content-api/put-content)でコンテンツを登録したとき(※ [status=draft パラメータ](https://document.microcms.io/content-api/put-content#h1276dbba7e)が付与された場合を除く)
* [POST API](/content-api/post-content)でコンテンツを登録したとき(※ [status=draft または status=closed パラメータ](/content-api/post-content#h1276dbba7e)が付与された場合を除く)
* [PUT API](/content-api/put-content)でコンテンツを登録したとき(※ [status=draft または status=closed パラメータ](/content-api/put-content#h1276dbba7e)が付与された場合を除く)

#### マネジメントAPI

* [ステータス変更](https://document.microcms.io/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)
* [ステータス変更](/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)

公開日時が更新されるタイミングの例
-----------------
Expand Down Expand Up @@ -126,19 +126,19 @@ revisedAt:コンテンツの改定日時

* [公開]ボタンをクリックしたとき
* [再公開]ボタンをクリックしたとき
* [公開開始予約](https://document.microcms.io/manual/edit-content#hb30313e224)により、コンテンツが公開されたとき
* [公開開始予約](/manual/edit-content#hb30313e224)により、コンテンツが公開されたとき

### APIでの操作

#### コンテンツAPI

* [POST API](https://document.microcms.io/content-api/post-content)でコンテンツを登録したとき(※ [status=draft パラメータ](https://document.microcms.io/content-api/post-content#h1276dbba7e)が付与された場合を除く)
* [PUT API](https://document.microcms.io/content-api/put-content)でコンテンツを登録したとき(※ [status=draft パラメータ](https://document.microcms.io/content-api/put-content#h1276dbba7e)が付与された場合を除く)
* [PATCH API](https://document.microcms.io/content-api/patch-content)でコンテンツを更新したとき
* [POST API](/content-api/post-content)でコンテンツを登録したとき(※ [status=draft または status=closed パラメータ](/content-api/post-content#h1276dbba7e)が付与された場合を除く)
* [PUT API](/content-api/put-content)でコンテンツを登録したとき(※ [status=draft または status=closed パラメータ](/content-api/put-content#h1276dbba7e)が付与された場合を除く)
* [PATCH API](/content-api/patch-content)でコンテンツを更新したとき

#### マネジメントAPI

* [ステータス変更](https://document.microcms.io/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)
* [ステータス変更](/management-api/patch-contents-status)したとき(※「下書き中」→「公開中」のみ)

改定日時が更新されるタイミングの例
-----------------
Expand Down