> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zixflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create A Collection Record

> This endpoint creates a new collection record in the specified collection.

#### Description

This API endpoint enables the creation of a new collection record within a specified collection. The collection record is associated with the provided collection ID.

#### Path

<ParamField path="collectionId" type="string" required>
  A unique identifier for the collection where the record will be added.
</ParamField>

#### Body

<ParamField body="<key>" type="varies" required>
  Key-value pairs representing data for the collection record. Keys are defined by the attribute API key name, and values depend on the input type of the attribute.
</ParamField>

#### Response

<ResponseField name="status" type="boolean">
  Indicates the success or failure of the collection record creation. In this case,
  true signifies a successful operation.
</ResponseField>

<ResponseField name="message" type="string">
  Provides a human-readable message accompanying the response. In this instance,
  it confirms the successful creation of the collection record with the message "Record created successfully!"
</ResponseField>

<ResponseField name="_id" type="string">
  The unique identifier for the created collection record.
</ResponseField>

<ResponseField name="data" type="object">
  An object containing details of the created collection record, including key-value pairs representing the record's data.
</ResponseField>

<ResponseExample>
  ```json 200-Success theme={null}
  {
      "status": true,
      "message": "Record created successfully!",
      "_id": "6551f5ff3c896c334f28d659",
      "data": {
          "_id": "6551f5ff3c896c334f28d659",
          "<key>": "<value>"
      }
  }
  ```

  ```json 401-Unauthorised theme={null}
  {
    "status": false,
    "message": "No token provided"
  }
  ```
</ResponseExample>
