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

# [Monitors] Update instance monitor



## OpenAPI

````yaml https://api.onetsolutions.net/schema put /v1/organizations/{organization_id}/projects/{project_id}/compute/instances/{id}/monitors/{monitor_id}
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Standard**: 1000 requests per minute

    - **Burst**: 100 requests per second


    ## Pagination


    List endpoints return paginated results. Use `page` and `page_size` query
    parameters.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `429` Too Many Requests
servers:
  - url: https://api.onetsolutions.net
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/projects/{project_id}/compute/instances/{id}/monitors/{monitor_id}:
    put:
      tags:
        - Compute
      summary: '[Monitors] Update instance monitor'
      operationId: update_instance_monitor
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this Instance.
          required: true
        - in: path
          name: monitor_id
          schema:
            type: string
          description: Unique identifier of the monitor.
          required: true
        - in: path
          name: organization_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: project_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstanceMonitorCreate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceMonitor'
          description: ''
      security:
        - BearerAuth: []
components:
  schemas:
    InstanceMonitorCreate:
      type: object
      properties:
        name:
          type: string
          maxLength: 255
        monitor_type:
          enum:
            - ping
            - port
          type: string
          description: |-
            * `ping` - Ping
            * `port` - Port
          x-spec-enum-id: 0d619fe57d8f90d7
        port:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
          nullable: true
        protocol:
          enum:
            - tcp
            - udp
          type: string
          description: |-
            * `tcp` - TCP
            * `udp` - UDP
          x-spec-enum-id: 1fdb07d2842eba4d
        interval_seconds:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        timeout_seconds:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        retries:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        is_enabled:
          type: boolean
        location_id:
          type: string
          format: uuid
          nullable: true
      required:
        - monitor_type
        - name
    InstanceMonitor:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 255
        monitor_type:
          enum:
            - ping
            - port
          type: string
          description: |-
            * `ping` - Ping
            * `port` - Port
          x-spec-enum-id: 0d619fe57d8f90d7
        target:
          type: string
          readOnly: true
          nullable: true
        location:
          allOf:
            - $ref: '#/components/schemas/MonitorLocation'
          readOnly: true
        port:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
          nullable: true
        protocol:
          enum:
            - tcp
            - udp
          type: string
          description: |-
            * `tcp` - TCP
            * `udp` - UDP
          x-spec-enum-id: 1fdb07d2842eba4d
        interval_seconds:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        timeout_seconds:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        retries:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
        status:
          enum:
            - up
            - down
            - degraded
            - pending
          type: string
          description: |-
            * `up` - Up
            * `down` - Down
            * `degraded` - Degraded
            * `pending` - Pending
          x-spec-enum-id: 39ec90afea49213b
          readOnly: true
        last_check_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        last_latency_ms:
          type: string
          pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        is_enabled:
          type: boolean
        consecutive_failures:
          type: integer
          readOnly: true
        created:
          type: string
          format: date-time
          readOnly: true
        modified:
          type: string
          format: date-time
          readOnly: true
      required:
        - consecutive_failures
        - created
        - id
        - last_check_at
        - last_latency_ms
        - location
        - modified
        - monitor_type
        - name
        - status
        - target
    MonitorLocation:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 100
        slug:
          type: string
          maxLength: 50
          pattern: ^[-a-zA-Z0-9_]+$
        region:
          enum:
            - us
            - eu
          type: string
          description: |-
            * `us` - United States
            * `eu` - Europe
          x-spec-enum-id: 089f5c3758b8e3ca
        is_active:
          type: boolean
        is_default:
          type: boolean
      required:
        - id
        - name
        - region
        - slug
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````