---
title: "Put Foundation For Structure With Id"
method: PUT
path: "/v1/structures/{structure_id}/foundation"
tags: ["structures"]
---

# Put Foundation For Structure With Id

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

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

This endpoint allows you to update the foundation details associated with a structure by its ID.
The structure ID should be provided as a path parameter in the URL.
The foundation details to be updated should be provided in the request body.

This endpoint does not return a response body. If the operation is successful, a 204 status code is returned.

## Path parameters

- `structure_id` string, required

## Request body

- StructureFoundationUpdateInput
  - `TypeName` 'default' | '1pier_pad' | '4piers_pad' | '1pier' | '4piers' | '4piers_circular_pad'
  - `H` integer, nullable
  - `c` integer, nullable
  - `FOS` integer, nullable
  - `h_w` number, nullable
  - `phi` integer, nullable
  - `rho` number, nullable
  - `width` integer, nullable
  - `breadth` integer, nullable
  - `height` integer, nullable
  - `t_plain` integer, nullable
  - `soil_bearing` integer, nullable
  - `solutionType` 'simple' | 'detailed'
  - `plainConcrete` boolean, nullable
  - `s` integer, nullable
  - `d_hor` integer, nullable
  - `shouldAnalyse` boolean, nullable
  - `towerOffsetX` integer, nullable
  - `towerOffsetY` integer, nullable
  - `Undrained` boolean, nullable
  - `Width_pier` integer, nullable
  - `Height_pier` integer, nullable
  - `has_spacing` boolean, nullable
  - `Spacing_pier` integer, nullable
  - `rebar_number` integer, nullable
  - `rebar_diameter` integer, nullable
  - `anchored_in_rock` boolean, nullable
  - `spacing_distance` integer, nullable
  - `c_uk` integer, nullable
  - `number_of_legs` integer, nullable

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