---
title: "Adjust queue expiry"
method: POST
path: "/vfs/queue-set-expiry"
---

# Adjust queue expiry

`POST /vfs/queue-set-expiry`

Sets the expiry time of a queued VFS upload item, optionally relative to its current value.

## Query parameters

- `fs` string
- `id` integer
- `expiry` number
- `relative` boolean
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- VfsQueueSetExpiryRequest
  - `fs` string — Optional VFS identifier for the queued item.
  - `id` integer — Queue item ID as returned by `vfs/queue`.
  - `expiry` number — New eligibility time in seconds (may be negative for immediate upload).
  - `relative` boolean — Set to true to treat `expiry` as relative to the current value.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Request succeeded returning an empty JSON object.

- object

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

## Changes

> 21 revisions in range; 18 could not be searched.

- **2025-12-06** `30e239e76ba1` — 8 breaking, 1 warning
  - removed the request body
  - the `query` request parameter `expiry` became required
  - the `query` request parameter `id` became required
  - the response property `input` became nullable for the status `4XX`
  - …5 more

[Change history](https://skmtc.dev/rclone/apis/rclone-rc-api/changes/vfs/queue-set-expiry/post.md)

---

[API](https://skmtc.dev/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.dev/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/revisions/adc0c129da4f/schema)
