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

# Create a new region



## OpenAPI

````yaml /openapi.json post /regions
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /regions:
    post:
      tags:
        - Regions
      summary: Create a new region
      operationId: RegionController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRegionDto'
      responses:
        '201':
          description: The region has been successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Region'
      security:
        - bearer: []
components:
  schemas:
    CreateRegionDto:
      type: object
      properties:
        id:
          type: string
          description: Region ID
        name:
          type: string
          description: Region name
        location:
          type: string
          description: Region location
        available:
          type: boolean
          description: Whether the region is available
        premiumRequired:
          type: boolean
          description: Whether the region requires premium subscription
        showRegion:
          type: boolean
          description: Whether the region should be shown to users
          default: true
      required:
        - id
        - name
        - location
        - available
        - premiumRequired
        - showRegion
    Region:
      type: object
      properties: {}
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````