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

# Replace Slo

> No description available



## OpenAPI

````yaml openapi_v4.yaml put /slo/slos/v1
openapi: 3.0.0
info:
  title: ''
  version: 1.0.0
servers:
  - url: https://api.coralogix.com/mgmt/openapi/4
  - url: https://api.eu2.coralogix.com/mgmt/openapi/4
  - url: https://api.coralogix.us/mgmt/openapi/4
  - url: https://api.cx498.coralogix.com/mgmt/openapi/4
  - url: https://api.coralogix.in/mgmt/openapi/4
  - url: https://api.coralogixsg.com/mgmt/openapi/4
  - url: https://api.ap3.coralogix.com/mgmt/openapi/4
security:
  - apiKeyAuth: []
tags:
  - name: Recording Rules Service
    description: A service to manage recording rules.
    externalDocs:
      url: ''
  - name: Slos Service
    description: A service for managing Service Level Objectives (SLOs).
    externalDocs:
      url: ''
  - name: Scopes Service
    description: A service to manage scopes
    externalDocs:
      url: ''
  - name: Quota Allocation Rule Set service
    description: Manage quota allocation rules for different entity types.
    externalDocs:
      url: ''
  - name: Extension deployment service
    description: A service that enables querying for extension deployment information.
    externalDocs:
      description: Find out more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Contextual data integration service
    description: Query for contextual data integration information.
    externalDocs:
      url: ''
  - name: Alert events service
    description: >-
      Get information regarding your alert events - instances of alerts being
      triggered.
    externalDocs:
      description: Learn more about alert events and incidents in our documentation.
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Views service
    description: Create and manage views.
    externalDocs:
      url: ''
  - name: Retentions Service
    description: View and manage retentions
    externalDocs:
      url: ''
  - name: Extension testing service
    externalDocs:
      description: Find out more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Rule Groups Service
    description: A service to manage rule groups.
    externalDocs:
      url: ''
  - name: Global routers service
    description: >-
      View and manage your global routers - entities that direct notifications
      to configured destinations based on conditions
    externalDocs:
      description: Lean more about global routers in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/routing/introduction/
  - name: Connectors service
    description: >-
      View and manage your connectors - integration instances for notification
      destinations
    externalDocs:
      description: Lean more about connectors in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/connectors/introduction/
  - name: IP access service
    description: >-
      IP access service provides the API for managing company IP access
      settings.
    externalDocs:
      url: ''
  - name: Dashboard folders service
    description: Manage your dashboard folders.
    externalDocs:
      url: ''
  - name: Events Service
    description: A service for querying events.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Data Usage Service
    description: A service to manage data usage metrics.
    externalDocs:
      url: ''
  - name: Extension service
    description: A service that enables querying for extension information.
    externalDocs:
      description: Learn more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Outgoing webhooks service
    externalDocs:
      description: Find out more about outbound webhooks in our documentation.
      url: >-
        https://coralogix.com/docs/user-guides/alerting/outbound-webhooks/generic-outbound-webhooks-alert-webhooks/
  - name: Presets service
    description: >-
      View and manage your presets - pre-configured templates for notification
      content rendering
    externalDocs:
      description: Lean more about presets in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/presets/introduction/
  - name: API Keys Service
    description: Manage your API Keys.
    externalDocs:
      url: ''
  - name: Events2Metrics Service
    description: Manage your events2metrics.
    externalDocs:
      url: ''
  - name: Custom Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: Alert definitions service
    description: >-
      View and manage your alerts using alert definitions - data structures that
      contain the configuration required to create an alert.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Folders for views service
    description: Create and manage view folders.
    externalDocs:
      url: ''
  - name: Policies Service
    description: View and manage your TCO policies
    externalDocs:
      url: ''
  - name: Cases service
    description: >-
      Manage cases throughout their lifecycle. Create, view, assign,
      acknowledge, resolve, and close cases to streamline investigations and
      follow-ups.
    externalDocs:
      description: Learn more about Cases in our documentation
      url: https://coralogix.com/docs/user-guides/cases/
  - name: Team Groups Management Service
    description: Manage Team Groups.
    externalDocs:
      url: ''
  - name: API Keys Admin Service
    description: Administrative operations for API Keys management.
    externalDocs:
      url: ''
  - name: Dashboard service
    description: Get information about the Coralogix Dashboard catalog.
    externalDocs:
      url: ''
  - name: Actions Service
    description: View and manage your Actions.
    externalDocs:
      url: ''
  - name: Target Service
    description: View and manage your storage targets for logs.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Integration service
    description: A service that enables querying for integration information.
    externalDocs:
      description: Find out more about integrations in our documentation.
      url: https://coralogix.com/docs/integrations/getting-started/
  - name: Alert Scheduler Rule service
    description: Manage your alert scheduler rules.
    externalDocs:
      url: ''
  - name: Entities service
    description: Query information about registered entities in the notification center
    externalDocs:
      description: Lean more about the notification center in our documentation
      url: https://coralogix.com/docs/user-guides/notification-center/introduction/
  - name: Incidents service
    description: >-
      Handle all operations related to incident management within Coralogix.
      Identify, manage, and resolve incidents efficiently through automated
      workflows and team collaboration.
    externalDocs:
      description: Find out more about incident management in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Metrics Data Archive Service
    description: View and manage your storage targets for metrics.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: SAML Configuration Service
    description: Manage your SAML configuration
    externalDocs:
      url: ''
  - name: Role Management Service
    description: Service for managing system and custom roles.
    externalDocs:
      url: ''
paths:
  /slo/slos/v1:
    put:
      tags:
        - Slos Service
      summary: Replace Slo
      description: No description available
      operationId: SlosService_ReplaceSlo
      parameters:
        - in: query
          name: silence_data_validations
          required: false
          schema:
            type: boolean
            deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/SloApmSli'
                - $ref: '#/components/schemas/SloRequestBasedMetricSli'
                - $ref: '#/components/schemas/SloWindowBasedMetricSli'
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplaceSloResponse'
          description: ''
        '400':
          content:
            application/json: {}
          description: Bad Request
        '401':
          content:
            application/json: {}
          description: Unauthorized request
        '500':
          content:
            application/json: {}
          description: Internal server error
      externalDocs:
        url: ''
components:
  schemas:
    SloApmSli:
      title: Slo
      type: object
      properties:
        apmSli:
          $ref: '#/components/schemas/ApmSli'
        createTime:
          type: string
          format: date-time
        creator:
          type: string
          example: test@domain.com
        description:
          type: string
          example: A brief description of my SLO
        grouping:
          $ref: '#/components/schemas/v1.Grouping'
        id:
          type: string
          example: b11919d5-ef85-4bb1-8655-02640dbe94d9
        labels:
          type: object
          additionalProperties:
            type: string
        name:
          type: string
          example: Example Slo Name
        productType:
          $ref: '#/components/schemas/SloProductType'
        revision:
          $ref: '#/components/schemas/v1.Revision'
        sloTimeFrame:
          $ref: '#/components/schemas/SloTimeFrame'
        sloType:
          $ref: '#/components/schemas/SloType'
        targetThresholdPercentage:
          type: number
          format: float
          example: 99.999
        type:
          type: string
          example: request
          deprecated: true
        updateTime:
          type: string
          format: date-time
      additionalProperties: false
      description: Definition of an SLO
      externalDocs:
        url: ''
    SloRequestBasedMetricSli:
      title: Slo
      type: object
      properties:
        createTime:
          type: string
          format: date-time
        creator:
          type: string
          example: test@domain.com
        description:
          type: string
          example: A brief description of my SLO
        grouping:
          $ref: '#/components/schemas/v1.Grouping'
        id:
          type: string
          example: b11919d5-ef85-4bb1-8655-02640dbe94d9
        labels:
          type: object
          additionalProperties:
            type: string
        name:
          type: string
          example: Example Slo Name
        productType:
          $ref: '#/components/schemas/SloProductType'
        requestBasedMetricSli:
          $ref: '#/components/schemas/RequestBasedMetricSli'
        revision:
          $ref: '#/components/schemas/v1.Revision'
        sloTimeFrame:
          $ref: '#/components/schemas/SloTimeFrame'
        sloType:
          $ref: '#/components/schemas/SloType'
        targetThresholdPercentage:
          type: number
          format: float
          example: 99.999
        type:
          type: string
          example: request
          deprecated: true
        updateTime:
          type: string
          format: date-time
      additionalProperties: false
      description: Definition of an SLO
      externalDocs:
        url: ''
    SloWindowBasedMetricSli:
      title: Slo
      type: object
      properties:
        createTime:
          type: string
          format: date-time
        creator:
          type: string
          example: test@domain.com
        description:
          type: string
          example: A brief description of my SLO
        grouping:
          $ref: '#/components/schemas/v1.Grouping'
        id:
          type: string
          example: b11919d5-ef85-4bb1-8655-02640dbe94d9
        labels:
          type: object
          additionalProperties:
            type: string
        name:
          type: string
          example: Example Slo Name
        productType:
          $ref: '#/components/schemas/SloProductType'
        revision:
          $ref: '#/components/schemas/v1.Revision'
        sloTimeFrame:
          $ref: '#/components/schemas/SloTimeFrame'
        sloType:
          $ref: '#/components/schemas/SloType'
        targetThresholdPercentage:
          type: number
          format: float
          example: 99.999
        type:
          type: string
          example: request
          deprecated: true
        updateTime:
          type: string
          format: date-time
        windowBasedMetricSli:
          $ref: '#/components/schemas/WindowBasedMetricSli'
      additionalProperties: false
      description: Definition of an SLO
      externalDocs:
        url: ''
    ReplaceSloResponse:
      title: ReplaceSloResponse
      required:
        - slo
      type: object
      properties:
        effectedSloAlertIds:
          type: array
          items:
            type: string
        slo:
          $ref: '#/components/schemas/Slo'
      description: Response after replacing an existing SLO.
      externalDocs:
        url: ''
    ApmSli:
      oneOf:
        - $ref: '#/components/schemas/ApmSliErrorConfig'
        - $ref: '#/components/schemas/ApmSliLatencyConfig'
    v1.Grouping:
      title: Grouping
      type: object
      properties:
        labels:
          type: array
          items:
            type: string
      description: Definition of the SLO grouping fields
      externalDocs:
        url: ''
    SloProductType:
      enum:
        - SLO_PRODUCT_TYPE_UNSPECIFIED
        - SLO_PRODUCT_TYPE_APM
      type: string
    v1.Revision:
      title: Revision
      type: object
      properties:
        revision:
          type: integer
          format: int32
          example: 1
        updateTime:
          type: string
          format: date-time
      description: >-
        The revision of the slo, used to differentiate between different
        versions of the same SLO
      externalDocs:
        url: ''
    SloTimeFrame:
      enum:
        - SLO_TIME_FRAME_UNSPECIFIED
        - SLO_TIME_FRAME_7_DAYS
        - SLO_TIME_FRAME_14_DAYS
        - SLO_TIME_FRAME_21_DAYS
        - SLO_TIME_FRAME_28_DAYS
      type: string
    SloType:
      enum:
        - SLO_TYPE_REQUEST
        - SLO_TYPE_WINDOW
      type: string
    RequestBasedMetricSli:
      title: RequestBasedMetricSli
      type: object
      properties:
        goodEvents:
          $ref: '#/components/schemas/Metric'
        totalEvents:
          $ref: '#/components/schemas/Metric'
      description: Definition of a request-based SLI based on metrics
      externalDocs:
        url: ''
    WindowBasedMetricSli:
      title: WindowBasedMetricSli
      type: object
      properties:
        comparisonOperator:
          $ref: '#/components/schemas/ComparisonOperator'
        missingDataStrategy:
          $ref: '#/components/schemas/MissingDataStrategy'
        query:
          $ref: '#/components/schemas/Metric'
        threshold:
          type: number
          format: float
          example: 0.95
        window:
          $ref: '#/components/schemas/WindowSloWindow'
      description: Definition of a window-based SLI based on metrics
      externalDocs:
        url: ''
    Slo:
      oneOf:
        - $ref: '#/components/schemas/SloRequestBasedMetricSli'
        - $ref: '#/components/schemas/SloWindowBasedMetricSli'
        - $ref: '#/components/schemas/SloApmSli'
    ApmSliErrorConfig:
      title: ApmSli
      type: object
      properties:
        errorConfig:
          $ref: '#/components/schemas/ApmErrorSli'
        filters:
          type: array
          items:
            $ref: '#/components/schemas/ApmFilter'
        groupingKeys:
          type: array
          items:
            type: string
            description: Labels to group SLO results by
          example:
            - environment
            - region
        services:
          type: array
          items:
            type: string
            description: List of service names to monitor
          example:
            - my-service
            - payment-service
      additionalProperties: false
      description: Definition of an APM-based SLI with automatic query generation
      externalDocs:
        url: ''
    ApmSliLatencyConfig:
      title: ApmSli
      type: object
      properties:
        filters:
          type: array
          items:
            $ref: '#/components/schemas/ApmFilter'
        groupingKeys:
          type: array
          items:
            type: string
            description: Labels to group SLO results by
          example:
            - environment
            - region
        latencyConfig:
          $ref: '#/components/schemas/ApmLatencySli'
        services:
          type: array
          items:
            type: string
            description: List of service names to monitor
          example:
            - my-service
            - payment-service
      additionalProperties: false
      description: Definition of an APM-based SLI with automatic query generation
      externalDocs:
        url: ''
    Metric:
      title: Metric
      type: object
      properties:
        query:
          type: string
          example: sum(rate(http_requests_total{status="200"}[5m]))
      description: Definition of a metric used in SLOs
      externalDocs:
        url: ''
    ComparisonOperator:
      enum:
        - COMPARISON_OPERATOR_UNSPECIFIED
        - COMPARISON_OPERATOR_GREATER_THAN
        - COMPARISON_OPERATOR_GREATER_THAN_OR_EQUALS
        - COMPARISON_OPERATOR_LESS_THAN
        - COMPARISON_OPERATOR_LESS_THAN_OR_EQUALS
      type: string
    MissingDataStrategy:
      enum:
        - MISSING_DATA_STRATEGY_UNCOUNTED
        - MISSING_DATA_STRATEGY_GOOD
        - MISSING_DATA_STRATEGY_BAD
      type: string
    WindowSloWindow:
      enum:
        - WINDOW_SLO_WINDOW_UNSPECIFIED
        - WINDOW_SLO_WINDOW_1_MINUTE
        - WINDOW_SLO_WINDOW_5_MINUTES
      type: string
    ApmErrorSli:
      title: ApmErrorSli
      type: object
      description: Configuration for error-based APM SLI
      externalDocs:
        url: ''
    ApmFilter:
      title: ApmFilter
      type: object
      properties:
        key:
          type: string
          description: Label/tag name to filter on
          example: environment
        value:
          type: string
          description: Exact value to match
          example: production
      description: 'Key-value filter for APM metrics (exact match: label="value")'
      externalDocs:
        url: ''
    ApmLatencySli:
      oneOf:
        - $ref: '#/components/schemas/ApmLatencySliQuantile'
        - $ref: '#/components/schemas/ApmLatencySliAverage'
    ApmLatencySliQuantile:
      title: ApmLatencySli
      type: object
      properties:
        quantile:
          $ref: '#/components/schemas/ApmLatencyQuantile'
        threshold:
          type: number
          description: >-
            Threshold in milliseconds. Good when latency <= threshold, bad when
            latency > threshold.
          format: float
          example: 500
        timeWindow:
          $ref: '#/components/schemas/WindowSloWindow'
      additionalProperties: false
      description: Configuration for latency-based APM SLI
      externalDocs:
        url: ''
    ApmLatencySliAverage:
      title: ApmLatencySli
      type: object
      properties:
        average:
          $ref: '#/components/schemas/ApmLatencyAverage'
        threshold:
          type: number
          description: >-
            Threshold in milliseconds. Good when latency <= threshold, bad when
            latency > threshold.
          format: float
          example: 500
        timeWindow:
          $ref: '#/components/schemas/WindowSloWindow'
      additionalProperties: false
      description: Configuration for latency-based APM SLI
      externalDocs:
        url: ''
    ApmLatencyQuantile:
      title: ApmLatencyQuantile
      type: object
      properties:
        percentile:
          type: number
          description: Percentile for latency SLOs (0.95 = P95, 0.99 = P99)
          format: float
          example: 0.95
      description: Quantile/percentile-based latency measurement
      externalDocs:
        url: ''
    ApmLatencyAverage:
      title: ApmLatencyAverage
      type: object
      description: Average/mean-based latency measurement
      externalDocs:
        url: ''
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication

````