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

# Create map region

> Create a new ERLC map region.

<ResponseExample>
  ```json 200 theme={null}
  {
    "code": 200,
    "message": "Region 'Spawn' was successfully created."
  }
  ```
</ResponseExample>

### Body Fields

<ParamField body="code" type="string" required>
  The configuration session code used to create this region. This cannot be externally generated, and is provided by Ducky through URL parameters.
</ParamField>

<ParamField body="name" type="string" required>
  The name of the region.
</ParamField>

<ParamField body="points" type="object[]" required>
  The points of the region.

  <Expandable title="properties">
    <ParamField body="index" type="number" required>
      The index of the point. This is used to determine the order of the points, as they are needed in order to calculate intersection and area.
    </ParamField>

    <ParamField body="x" type="number" required>
      The X coordinate of the point.
    </ParamField>

    <ParamField body="z" type="number" required>
      The Z coordinate of the point.
    </ParamField>
  </Expandable>
</ParamField>
