---
title: "ブロックの作成"
---

> Documentation Index
> Fetch the complete documentation index at: https://apidocs.cs-cart.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# ブロックの作成

<span class="api-method api-method-post">`POST`</span> `/blocks`

新しいブロックを作成するには、`/api/blocks`に対してPOSTを送信します。

## リクエスト：ヘッダー

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Basic <認証情報>`     |

> **認証情報について**
>
> 認証情報は、ユーザーのEメールアドレスとAPIキーをコロンで連結したものをBase64エンコードしたものです。

## リクエスト：ボディ

| Name         | Type               | 必須 | 説明         |
| ------------ | ------------------ | -- | ---------- |
| `type`       | string             | 必須 | ブロックのタイプ   |
| `name`       | string             | 必須 | ブロックの名前    |
| `properties` | array\_of\_strings |    | ブロックのプロパティ |
| `content`    | string             |    | ブロックのコンテンツ |

## レスポンス

### 200

```json
{}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/blocks/api-block-create/index.mdx
