---
title: "Allows the user to add share codes given to them to operate devices within a defined permission scope. Can add up to 20 shares in an array."
method: PUT
path: "/Share"
tags: ["Share", "Share"]
---

# Allows the user to add share codes given to them to operate devices within a defined permission scope. Can add up to 20 shares in an array.

`PUT /Share`

## Request body

- AddShareCodesRequest
  - `Shares` string[]

## Response `204`

Share(s) added.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Could not find one of the shares. No shares claimed.
- `410` — A Share is already claimed. No shares were claimed.
- `412` — Must provide at least 1 code.
- `416` — Cannot batch claim more than 20 codes.

---

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