Metadata & Expiry

Every object carries metadata alongside its content: a title and description for the index, tags, a content type, a disposition and an optional expiry time. You set it while uploading and change it later with vela meta — for one file or, with -r, for many.

Fields

titlestring ≤ 256 characters

Shown next to the file name in the public index. Plain text.

descriptionstring ≤ 4096 characters

Longer plain-text description, available to the index theme.

tagsup to 32 × ≤ 64 characters

Lower-cased; allowed characters a-z, 0-9, -, _, .. Commands can select objects by tag.

content_typeMIME type

Sent as Content-Type. Detected automatically unless set; text types get ; charset=utf-8. Resetting it re-runs detection.

dispositioninline | attachmentdefault inline

Controls Content-Disposition: inline lets browsers display the file, attachment forces a download. The file name is always included, RFC 6266-encoded with filename*=UTF-8''….

visibilitypublic | unlisted | private

See Visibility.

expires_atRFC 3339 time or null

When the object self-destructs. See Expiry.

Read-only fields maintained by the server: id, path, name, size, sha256, created_at, updated_at, expired, revision and url.

Viewing metadata

vela meta report.pdf         # same as: vela stat report.pdf
vela --json meta report.pdf  # the full object as JSON

Editing with vela meta

vela meta report.pdf --title 'Q1 report' --tag q1 --untag draft
vela meta report.pdf --description 'Final version, signed'
vela meta report.pdf --content-type application/pdf --disposition attachment
vela meta report.pdf --expires 7d
vela meta report.pdf --expires none
--title TEXT

Set the title; --title "" clears it.

--description TEXT

Set the description.

--tag TAGrepeatable

Add a tag, keeping the existing ones.

--untag TAGrepeatable

Remove a tag.

--content-type TYPE

Set the MIME type.

--disposition inline|attachment

Set the disposition.

--expires 7d|RFC3339|none

Expire after a duration from now, at an exact time, or never.

To change visibility use vela vis; to change the path use vela mv.

Many files at once

With -r, vela meta changes several files and everything below directories — they may be mixed, as with vela vis:

$ vela meta -r docs/ --tag course --untag draft
3 object(s) checked (3 changed)

$ vela meta -r photos/2026/ notes/trip.md --disposition attachment --expires 30d
  • Tags are added and removed per object: each file keeps its other tags.
  • Objects that already match are left alone — no new revision, no changed updated_at.
  • --description, --disposition and --expires work as usual; --title and --content-type are refused, because one value is almost never right for many files.
  • Each object is patched with its own revision check, several at a time. If some fail, the others are still changed and the CLI exits with code 7.

To change files by their tags instead of their paths, use --by-tag.

Optimistic locking

vela meta reads the object, computes the change and sends it with If-Match: "r<revision>". If someone else modified the file in between, the server answers 412 precondition_failed and nothing changes — your edit never silently overwrites another one. The CLI exits with code 4; run the command again.

Expiry: self-destructing files

Set an expiry when uploading or later:

vela put build.zip previews/pr-42.zip --public --expires 7d
vela new tmp/note.txt --content 'temporary' --expires 2026-12-31T23:59:59Z
vela meta previews/pr-42.zip --expires 30d   # extend
vela meta previews/pr-42.zip --expires none  # keep forever

What happens when the time passes:

  1. Immediately

    The object vanishes from the public side: its direct URL and signed links answer 404 and it is no longer listed in the index. This is checked on every request.

  2. Until the next janitor pass

    Through the API it is still readable; stat shows "expired": true. You can download it or remove the expiry to rescue it.

  3. At the janitor pass

    The janitor moves it to the trash, where the usual retention applies. Restoring it from the trash also clears the past expiry, so it is not immediately trashed again.

Metadata over HTTP

When uploading with PUT /api/v1/content/…, metadata travels in headers: X-Vela-Visibility, X-Vela-Title and X-Vela-Description (percent-encoded UTF-8), X-Vela-Tags (comma-separated), X-Vela-Disposition and X-Vela-Expires-At (RFC 3339 or none). Later changes use PATCH /api/v1/objects/… with a JSON Merge Patch where null resets a field to its default:

curl -X PATCH https://store.example.com/api/v1/objects/report.pdf \
  -H "Authorization: Bearer $VELA_KEY" \
  -H 'If-Match: "r3"' \
  -d '{"title": "Q1 report", "tags": ["q1", "final"], "expires_at": null}'

See the endpoint reference.