---
title: "Sets whether or not the share can log."
method: PATCH
path: "/Share/Log"
tags: ["Share", "Share"]
---

# Sets whether or not the share can log.

`PATCH /Share/Log`

## Request body

- SetLogStateRequest — Creates a new share code for a given shocker.
  - `ShareId` integer — Id of the share to modify
  - `LogState` boolean, nullable — New state of CanLog, or null for toggle

## Response `204`

Share code should now reflect new CanLog state.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.dev/pishock/apis/pishock-public-api-v1.md) · [All operations](https://skmtc.dev/pishock/apis/pishock-public-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pishock/pishock-public-api-v1/revisions/271272058af7/schema)
