---
title: "Insert new security metrics"
method: POST
path: "/security/{type}/data"
tags: ["security"]
---

# Insert new security metrics

`POST /security/{type}/data`

## Request

- Base URL: `https://api.merqube.com`
- URL: `https://api.merqube.com/security/{type}/data`
- Auth: none declared
- TypeScript: <https://skmtc.dev/merqube/apis/merqube-api/docs/security/:type/data/post.ts> (a function with typed inputs; its response is checked against the schema)

Insert new security metrics

## Path parameters

- `type` string, required

## Request body

- SecurityMetrics[]
  - `eff_ts` union, required
    - string, date-time
    - string, date
    - string
  - `id` string, required
  - `lineage` object: data lineage information, for MerQube use only.
  - `metric` string, required
  - `prov_ts` union, required
    - string, date-time
    - string, date
    - string
  - `source` string
  - `value` union, required
    - string
    - number
    - integer
    - boolean
    - unknown[]
      - unknown
    - object

## Response `200`

ok

## Other responses

- `400`: data in request body is malformed or not of the expected format
- `403`: not authorized

---

[API](https://skmtc.dev/merqube/apis/merqube-api.md) - [All operations](https://skmtc.dev/merqube/apis/merqube-api/llms.txt) - [OpenAPI document](https://skmtc.dev/merqube/apis/merqube-api/revisions/20f47ca36587?raw)
