---
title: "POST /api/v1/dynamic-secrets/leases/{leaseId}/renew"
method: POST
path: "/api/v1/dynamic-secrets/leases/{leaseId}/renew"
tags: ["Dynamic Secrets"]
---

# POST /api/v1/dynamic-secrets/leases/{leaseId}/renew

`POST /api/v1/dynamic-secrets/leases/{leaseId}/renew`

## Request

- Base URL: `https://us.infisical.com`
- URL: `https://us.infisical.com/api/v1/dynamic-secrets/leases/{leaseId}/renew`
- Auth: none declared

## Path parameters

- `leaseId` string, required

## Request body

- object
  - `ttl` string: The renew TTL that gets added with current expiry (ensure it's below max TTL) for a total less than creation time + max TTL.
  - `projectSlug` string, required: The slug of the project of the dynamic secret in.
  - `path` string: The path of the dynamic secret in.
  - `environmentSlug` string, required: The slug of the environment of the dynamic secret in.

## Response `200`

Default Response

- object
  - `lease` object, required
    - `id` string, uuid, required
    - `version` number, required
    - `externalEntityId` string, required
    - `expireAt` string, date-time, required
    - `status` string, nullable
    - `statusDetails` string, nullable
    - `dynamicSecretId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `config` unknown

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `422`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) - [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infisical/apis/infisical-api/revisions/7f940199c899?raw)
