Collections

Create collection

Craft Cross CMSのコレクションを作成します。

Required Scope

APIの実行に必要なScopeです。

beta.cms.collection.create

Required Role

管理画面でScopeを追加する際に必要な権限です。

Craft Cross CMS > CMSの編集
post/v2beta/cms/collection/create

Request

  • Base URL
    https://api.karte.io
  • URL
    https://api.karte.io/v2beta/cms/collection/create
  • Auth
    HTTP bearer

Headers

x-karte-apistring

今後利用する可能性のある予約語です。現在は設定不要です。

authorizationstring

認証情報を含むトークンです。"Authorization" ヘッダーに Bearer <token> の形式で設定してください。

content-typestring

リクエストのコンテンツタイプを指定します。通常は application/json を使用してください。

Request body

Response

成功レスポンス

idstring required

コレクションのID

namestring required

コレクション名

descriptionstring required

コレクションの説明

Example response

{
  "id": "6347f05d5d18d4536af5f336",
  "name": "Blog Posts",
  "description": "ブログ記事を管理するコレクション"
}

Changes

No recorded changes to this operation across all 1 revision of this API.