Files

Updates a file's mutable metadata. The stored bytes are immutable — re-upload to change a file's contents.

All fields are optional and follow PATCH semantics: only the fields you send are changed. For files you can rename via filename and set a description or tags. For external-video embeds you can update the source url.

patch/files/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

File ID (e.g., "file_abc123")

Request body

FileUpdateRequest required
title, string nullable

Human-readable display title. Pass null to clear it.

filename, string nullable

Rename the file (updates the stored blob filename). Files only.

description, string nullable

Free-text description. Pass null to clear it.

tags, string[] nullable

Replaces the tag list. Pass an empty array to clear all tags.

url, string nullable

New source URL for an external-video embed (YouTube, Vimeo, or Wistia).

Response

Updated file

File required
object, string required
id, string required
kind, 'file' | 'external_video' required
upload_status, 'pending' | 'processing' | 'ready' | 'failed' required
upload_error, string nullable required
source, 'upload' | 'url_import' | 'external_video' | 'generation' required
title, string nullable required
description, string nullable required
created_at, string date-time required
updated_at, string date-time required
url, string nullable required
tags, string[] nullable required
source_job_id, string nullable required
filename, string nullable required
content_type, string nullable required
size, integer nullable required
provider, string nullable required
file_url, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision