---
title: "Create Power Consumers"
method: POST
path: "/v1/power_consumers/"
tags: ["power_consumers"]
---

# Create Power Consumers

`POST /v1/power_consumers/`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/power_consumers/`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

This endpoint creates new power consumers linked to a structure discrete ancillary
and optionally a battery bank.

## Request body

- PowerConsumerCreateInput[]
  - `structureDiscreteAncillariesId` integer, required
  - `batteryBankId` integer, nullable
  - `powerConsumptionKW` number, required
  - `uptimeH` number, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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