example-data.com

files / #175

ownerUserId
203
name
photo-mdhS3D.jpg
mimeType
image/jpeg
sizeBytes
3088656
url
https://files.example.com/objects/175/photo-mdhS3D.jpg
parentFolderId
93
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/175"
)
file = res.json()
{
  "id": 175,
  "ownerUserId": 203,
  "name": "photo-mdhS3D.jpg",
  "mimeType": "image/jpeg",
  "sizeBytes": 3088656,
  "url": "https://files.example.com/objects/175/photo-mdhS3D.jpg",
  "parentFolderId": 93,
  "isFolder": false,
  "createdAt": "2024-11-13T21:50:46.333Z",
  "updatedAt": "2025-01-07T19:00:52.669Z"
}
Draftbit