---
title: "PUT /WebHdfsExt/{path}"
method: PUT
path: "/WebHdfsExt/{path}"
tags: ["FileSystem"]
---

# PUT /WebHdfsExt/{path}

`PUT /WebHdfsExt/{path}`

Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

## Path parameters

- `path` string, required

## Query parameters

- `expiryOption` 'NeverExpire' | 'RelativeToNow' | 'RelativeToCreationDate' | 'Absolute', required
- `expireTime` integer
- `op` 'SETEXPIRY', required
- `api-version` string, required

## Response `200`

Successfully set the expiration time on the specified file.

## Other responses

- `default` — An unexpected error from the server.

---

[API](https://skmtc.net/azure/apis/datalake-store-datalakestore.md) · [All operations](https://skmtc.net/azure/apis/datalake-store-datalakestore/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/datalake-store-datalakestore/versions/76fd0c1fde01/schema)
