---
title: "Toggle Foundation Should Analyse"
method: PATCH
path: "/v1/structures/{structure_id}/foundation/should-analyse"
tags: ["structures"]
---

# Toggle Foundation Should Analyse

`PATCH /v1/structures/{structure_id}/foundation/should-analyse`

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

This endpoint allows you to toggle the should_analyse flag for the foundation of a structure by its ID.

If the flag is toggled on and no foundation exists previously, a default foundation will be created.

## Path parameters

- `structure_id` string, required

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