---
title: "Update Discrete Ancillaries By Structure Id"
method: PUT
path: "/v1/structures/{structure_id}/discrete_ancillaries"
tags: ["structures"]
---

# Update Discrete Ancillaries By Structure Id

`PUT /v1/structures/{structure_id}/discrete_ancillaries`

## 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/structures/{structure_id}/discrete_ancillaries`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

This endpoint allows you to update discrete ancillaries associated with a structure by its ID.
The structure ID should be provided as a path parameter in the URL.
The ancillaries to be updated should be provided in the request body as a list of objects, each representing a discrete ancillary.

If the ancillary positioning is manual, the x and y coordinates can also be provided. If they are not provided, they will be calculated automatically.

## Path parameters

- `structure_id` string, required

## Request body

- StructureDiscreteAncillaryUpdateInput[]
  - `structureDiscreteAncillaryId` integer, required
  - `tenantId` integer, nullable
  - `mountHeightM` number, required
  - `azimuthDEG` number, required
  - `mountOption` 'TOP' | 'MIDDLE' | 'BOTTOM', required
  - `shieldingFactor` number, required
  - `mountBracketWeightKG` number, required
  - `xM` number, nullable
  - `yM` number, nullable
  - `isPositionManual` boolean, nullable
  - `isUsingGlobalCoordinates` boolean, nullable
  - `shouldAnalyse` boolean, required
  - `status` 'INSTALLED' | 'PLANNED' | 'REMOVED' | 'UNKNOWN' | 'MARKED FOR REMOVAL'
  - `discreteAncillaryId` integer, required
  - `shelterId` integer, nullable
  - `shelterXM` number, nullable
  - `shelterYM` number, nullable
  - `shelterZM` number, nullable
  - `shelterAzimuthDEG` number, nullable
  - `shelterIsExterior` boolean

## Response `204`

Successful Response

## Other responses

- `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)
