> ## 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.

# Update a region



## OpenAPI

````yaml /openapi.json put /regions/{id}
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/{id}:
    put:
      tags:
        - Regions
      summary: Update a region
      operationId: RegionController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRegionDto'
      responses:
        '200':
          description: The region has been successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Region'
        '404':
          description: Region not found.
      security:
        - bearer: []
components:
  schemas:
    UpdateRegionDto:
      type: object
      properties:
        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
    Region:
      type: object
      properties: {}
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````