---
title: "Updates the public state of the photos matching the provided data."
method: PUT
path: "/api/v{version}/photo"
tags: ["Photo"]
---

# Updates the public state of the photos matching the provided data.

`PUT /api/v{version}/photo`

## Path parameters

- `version` string, required

## Request body

- PhotoUpdate[]
  - `id` integer, required — Gets the BDMS.Models.Photo's id.
  - `public` boolean, required — Gets the BDMS.Models.Photo's public state.

## Response `200`

OK

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/versions/e6d0b4ee0f52/schema)
