---
title: "Creates new Data Aggregator in the system by accepting data in the request body"
method: POST
path: "/aggregator"
tags: ["Aggregator"]
---

# Creates new Data Aggregator in the system by accepting data in the request body

`POST /aggregator`

## Request body

- DataAggregatorDTO
  - `id` integer
  - `name` string
  - `args` ArgumentDTO[]
    - `id` integer
    - `name` string
    - `description` string
  - `script` string
  - `active` boolean

## Response `200`

Data Aggregator has been successfully retrieved

- DataAggregatorDTO
  - `id` integer
  - `name` string
  - `args` ArgumentDTO[]
    - `id` integer
    - `name` string
    - `description` string
  - `script` string
  - `active` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/versions/82ed767ffb65/schema)
