example-data.com

files / #152

ownerUserId
240
name
report-VMJ1Rh.pdf
mimeType
application/pdf
sizeBytes
44503611
url
https://files.example.com/objects/152/report-VMJ1Rh.pdf
parentFolderId
101
isFolder
false
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/files/152" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/files/152"
);
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/152"
);
const file = (await res.json()) as File;
import requests

res = requests.get(
    "https://example-data.com/api/v1/files/152"
)
file = res.json()
{
  "id": 152,
  "ownerUserId": 240,
  "name": "report-VMJ1Rh.pdf",
  "mimeType": "application/pdf",
  "sizeBytes": 44503611,
  "url": "https://files.example.com/objects/152/report-VMJ1Rh.pdf",
  "parentFolderId": 101,
  "isFolder": false,
  "createdAt": "2024-08-05T14:21:10.588Z",
  "updatedAt": "2025-01-05T14:51:11.567Z"
}
Draftbit