---
title: "Create or replace a sent share."
method: PUT
path: "/sentShares/{sentShareId}"
tags: ["SentShare"]
---

# Create or replace a sent share.

`PUT /sentShares/{sentShareId}`

Create or replace a sent share

## Path parameters

- `sentShareId` string, required

## Query parameters

- `api-version` string, required

## Request body

- SentShare — Base data transfer object implementation for proxy resources.
  - `id` string — The unique id of the resource.
  - `type` string — Type of the resource.

## Response `200`

Success

- SentShare — Base data transfer object implementation for proxy resources.
  - `id` string — The unique id of the resource.
  - `type` string — Type of the resource.

## Other responses

- `201` — Success
- `default` — Default error response.

## Changes

- **2026-07-13** (2021-09-01-preview) `a1ebde565f2f` — 3 warning, 1 info
  - the optional response header `Operation-Location` removed for the status `200`
  - the optional response header `Operation-Location` removed for the status `201`
  - the optional response header `x-ms-error-code` removed for the status `default`
  - api operation id `SentShares_CreateOrReplace` removed and replaced with `SentShares_CreateOrUpdate`

[Change history](https://skmtc.dev/azure/apis/purview-share/changes/sentShares/:sentShareId/put.md)

---

[API](https://skmtc.dev/azure/apis/purview-share.md) · [All operations](https://skmtc.dev/azure/apis/purview-share/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/purview-share/revisions/79b396164f79/schema)
