SmartMemory
POST
/memory/locks/{key}/renew

Extend a live lease under compare-and-set ownership.

Path Parameters

key*Key

Header Parameters

X-Lease-Token*X-Lease-Token

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Requested lease duration.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/locks/string/renew" \  -H "X-Lease-Token: string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "key": "string",
  "token": "string",
  "expires_at": "2019-08-24T14:15:22Z",
  "ttl_remaining_ms": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}