# Create content item

Creates a new content item using the specified template and field values.

Endpoint: POST /api/v1/content/create
Version: v2.0
Security: HTTPBearer

## Security:

  - `HTTPBearer` (unknown)
    http bearer JWT

## Header parameters:

  - `x-sc-job-id` (any)
    A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

## Request fields (application/json):

  - `templateId` (string, required)
    The unique identifier of the template used to create the content item.
    Example: 9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f

  - `name` (string, required)
    The name of the content item to create.
    Example: New Promo

  - `parentId` (string, required)
    The unique identifier of the parent item.
    Example: 9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f

  - `language` (string)
    The language code for the content item.
    Example: en

  - `fields` (any)
    A key-value map of field names and their values for the content item, or null if none.

## Response 201:

  - `201` (unknown)
    Successful response

## Response 201 fields (application/json):

  - `itemId` (string)
    The unique identifier of the created content item.
    Example: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

  - `name` (string)
    The name of the created content item.
    Example: New Promo

  - `path` (string)
    The path of the created content item.
    Example: /sitecore/layout/Renderings/Feature/JSS Experience Accelerator/Page Content/Promo/New Promo

  - `templateId` (string)
    The unique identifier of the template used for the content item.
    Example: 9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f

  - `version` (integer)
    The version number of the created content item.
    Example: 1

## Response 422:

  - `422` (unknown)
    Unprocessable entity

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array)
    The location of the error in the request.

  - `detail.msg` (string)
    The error message.

  - `detail.type` (string)
    The type of error.

  - `detail.input` (any)
    The input that caused the error.

  - `detail.ctx` (object)
    The context in which the error occurred.

