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

# Create Metric Point



## OpenAPI

````yaml api-reference/openapi.json post /metrics/{metric}/points
openapi: 3.1.0
info:
  title: Cachet
  version: 0.0.1
  description: >-
    API documentation for Cachet, the open-source, self-hosted status page
    system.
servers:
  - url: http://localhost/api
  - url: https://v3.cachethq.io/api
    description: The Cachet v3 demo server.
security:
  - http: []
tags:
  - name: Cachet
  - name: Components
  - name: Component Groups
  - name: Incidents
  - name: Incident Updates
  - name: Incident Templates
  - name: Metrics
  - name: Metric Points
  - name: Schedules
  - name: Schedule Updates
paths:
  /metrics/{metric}/points:
    post:
      tags:
        - Metric Points
      summary: Create Metric Point
      operationId: cachet.api.metrics.points.store
      parameters:
        - name: metric
          in: path
          required: true
          description: The metric ID
          schema:
            type: integer
      requestBody:
        description: '`CreateMetricPointRequestData`'
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMetricPointRequestData'
      responses:
        '201':
          description: '`MetricPoint`'
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MetricPoint'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/MissingAbilityException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    CreateMetricPointRequestData:
      type: object
      properties:
        value:
          type: number
        timestamp:
          type:
            - string
            - 'null'
      required:
        - value
      title: CreateMetricPointRequestData
    MetricPoint:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - metricPoints
        attributes:
          type: object
          properties:
            id:
              type: integer
            metric_id:
              type: integer
            calculated_value:
              type: string
            value:
              type: number
            counter:
              type: integer
            created:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
            updated:
              type: object
              properties:
                human:
                  type: string
                string:
                  type: string
              required:
                - human
                - string
          required:
            - id
            - metric_id
            - calculated_value
            - value
            - counter
            - created
            - updated
        relationships:
          type: object
          properties:
            metric:
              type: object
              properties:
                data:
                  anyOf:
                    - $ref: '#/components/schemas/MetricIdentifier'
                    - type: 'null'
              required:
                - data
      required:
        - id
        - type
      title: MetricPoint
    MetricIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
            - metrics
        id:
          type: string
      required:
        - type
        - id
      title: MetricIdentifier
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    MissingAbilityException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    http:
      type: http
      scheme: bearer

````