example-data.com

files / #190

ownerUserId
160
name
archive-vjQZjv.zip
mimeType
application/zip
sizeBytes
26235898
url
https://files.example.com/objects/190/archive-vjQZjv.zip
parentFolderId
isFolder
false
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/files/190" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/files/190"
);
const file = await res.json();
import type { File } from "https://example-data.com/types/files.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/files/190"
);
const file = (await res.json()) as File;
import requests

res = requests.get(
    "https://example-data.com/api/v1/files/190"
)
file = res.json()
{
  "id": 190,
  "ownerUserId": 160,
  "name": "archive-vjQZjv.zip",
  "mimeType": "application/zip",
  "sizeBytes": 26235898,
  "url": "https://files.example.com/objects/190/archive-vjQZjv.zip",
  "parentFolderId": null,
  "isFolder": false,
  "createdAt": "2024-11-16T09:55:33.177Z",
  "updatedAt": "2024-12-05T14:32:02.274Z"
}
Draftbit