---
title: "Extend a GraphQL query lock TTL"
method: POST
path: "/dev-tools/gql-lock/extend"
tags: ["Dev Tools", "GraphQL Locks"]
---

# Extend a GraphQL query lock TTL

`POST /dev-tools/gql-lock/extend`

## Request

- Base URL: `http://dev.theverge.com:3002/api`
- URL: `http://dev.theverge.com:3002/api/dev-tools/gql-lock/extend`
- Auth: none declared

Extends the TTL of an existing GraphQL query lock to keep it active longer

## Request body

- object
  - `id` string, required
  - `host` string, required
  - `addTtlSec` number, required
  - `variableHash` string

## Response `200`

Successfully extended lock TTL

- object
  - `data` ExtendResponse, required
    - `success` boolean, required
    - `key` string, required
    - `scope` 'persisted_query' | 'variable_hash', required
    - `newTtl` number, required
    - `extended` boolean, required

## Other responses

- `400`: Invalid input parameters
- `404`: Lock not found
- `500`: Internal server error

---

[API](https://skmtc.dev/theverge/apis/the-verge-api-documentation.md) - [All operations](https://skmtc.dev/theverge/apis/the-verge-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/theverge/apis/the-verge-api-documentation/revisions/f44a9b8ebfc3?raw)
