---
title: "PUT /v1beta/{tenantId}/file/shares/{fileshareId}"
method: PUT
path: "/v1beta/{tenantId}/file/shares/{fileshareId}"
tags: ["File Shares"]
---

# PUT /v1beta/{tenantId}/file/shares/{fileshareId}

`PUT /v1beta/{tenantId}/file/shares/{fileshareId}`

Updates a file share.

## Request body

- object
  - `name` string
  - `description` string

## Response `200`

OK

- FileShareRespSpec — FileShare is a file system created by nfs southbound driver, it can be mounted on to physical machine or virtual machine instance.
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `tenantId` string
  - `userId` string
  - `name` string
  - `description` string
  - `size` integer
  - `availabilityZone` string
  - `status` string
  - `profileId` string
  - `protocols` string[]
  - `exportLocations` string[]
  - `metadata` object

## Other responses

- `401` — NotAuthorized
- `403` — The resource does not exist
- `500` — An unexpected error occured.

## Changes

- **2019-12-09** `6f907ee4cf9b` — 4 breaking, 2 info
  - the response property `allOf[subschema #2]/name` became optional for the status `200`
  - the response property `allOf[subschema #2]/size` became optional for the status `200`
  - the `allOf[subschema #2]/name` response property's maxLength was unset from `255` for the response status `200`
  - the `allOf[subschema #2]/name` response property's minLength was decreased from `1` to `0` for the response status `200`
  - …2 more
- **2019-12-06** `1c79c9d92d7b` — 1 info
  - the `allOf[subschema #2]/name` response's property pattern `[A-Za-z0-9_-]` was added for the status `200`
- **2019-12-05** `0d720ad6985a` — 1 info
  - the request property `name` became optional
- **2019-11-22** `a41e1157d0e7` — 3 breaking
  - the response property `allOf[subschema #2]/availabilityZone` became optional for the status `200`
  - the response property `allOf[subschema #2]/profileId` became optional for the status `200`
  - the response property `allOf[subschema #2]/tenantId` became optional for the status `200`
- **2019-11-06** `fd0669e1e56f` — 5 info
  - added optional request body
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - …1 more

[Full history](https://skmtc.dev/sodafoundation/apis/soda-api/changes/v1beta/:tenantId/file/shares/:fileshareId/put.md)

---

[API](https://skmtc.dev/sodafoundation/apis/soda-api.md) · [All operations](https://skmtc.dev/sodafoundation/apis/soda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sodafoundation/apis/soda-api/revisions/62ce0f6c94b4?raw)
