# Create a showcase

`POST https://api.cademi.com.br/api/v3/showcases`

Operation ID: `showcases.create` · API v3

Creates a showcase or a showcase group. New showcases and groups are always created with the `draft` status.

Showcases follow a two-level hierarchy: groups exist only at the top level and can contain showcases. To create a showcase inside a group, set `parent_id` to the group's public ID; if `parent_id` does not reference a group, the request is rejected with `hierarchy_violation`. A showcase created inside a group is always created with the `showcase` kind.

Required permissions: `showcases.create`.

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `after_id` | string or null | no |  |
| `kind` | string, one of `group`, `showcase` | yes |  |
| `name` | string | yes |  |
| `parent_id` | string or null | no |  |

## Responses

### 201

Returns the newly created showcase.

Body: `data`: Showcase.

Fields of Showcase:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `deleted` | boolean | yes |  |
| `id` | string | yes | Public ID, with the shw_ prefix. |
| `image` | string or null | yes |  |
| `kind` | string, one of `group`, `showcase` | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `showcase` | yes |  |
| `parent_id` | string or null | yes |  |
| `position` | integer | yes |  |
| `products_count` | integer | yes |  |
| `revision` | string | yes |  |
| `status` | string, one of `published`, `draft`, `unlisted`, `hidden` | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
