---
title: "Create Discrete Ancillary Group From Structure"
method: POST
path: "/v1/ancillaries/discrete/groups/from-structure"
tags: ["ancillaries"]
---

# Create Discrete Ancillary Group From Structure

`POST /v1/ancillaries/discrete/groups/from-structure`

## 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/ancillaries/discrete/groups/from-structure`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

Saves a set of structure discrete ancillaries as a reusable sector or
elevation band group. Member placements are normalized to the group's
reference frame (reference azimuth at 0, lowest member at height 0).

## Request body

- DiscreteAncillaryGroupFromStructureInput
  - `name` string, required
  - `kind` 'PLAIN' | 'SECTOR' | 'ELEVATION_BAND', required
  - `structureId` string, required
  - `structureDiscreteAncillaryIds` integer[], required
  - `referenceAzimuthDEG` number, nullable

## Response `200`

Successful Response

- DiscreteAncillaryGroupView
  - `id` integer, required
  - `createdBy` string, required
  - `name` string, required
  - `kind` 'PLAIN' | 'SECTOR' | 'ELEVATION_BAND', required
  - `discreteAncillaryIds` integer[], required

## Other responses

- `400`: Bad request
- `404`: Not found
- `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)
