> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Timeout

> Extend or shorten the runtime timeout

```python theme={null}
from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small", timeout=300)

response = client.runtime.set_timeout(runtime.runtime_id, timeout=1800)
print(response.message)
print(response.timeout)
print(response.timeout_at)

runtime.kill()
```

## Parameters

| Parameter    | Type    | Required | Description            |
| ------------ | ------- | -------- | ---------------------- |
| `runtime_id` | string  | Yes      | Runtime identifier     |
| `timeout`    | integer | Yes      | New timeout in seconds |

## Response

| Field        | Type    | Description           |
| ------------ | ------- | --------------------- |
| `message`    | string  | Confirmation message  |
| `timeout`    | integer | Updated timeout value |
| `timeout_at` | string  | New timeout timestamp |
