example-data.com

files / #202

ownerUserId
172
name
audio-eLXXo7.mp3
mimeType
audio/mpeg
sizeBytes
28144704
url
https://files.example.com/objects/202/audio-eLXXo7.mp3
parentFolderId
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/202"
)
file = res.json()
{
  "id": 202,
  "ownerUserId": 172,
  "name": "audio-eLXXo7.mp3",
  "mimeType": "audio/mpeg",
  "sizeBytes": 28144704,
  "url": "https://files.example.com/objects/202/audio-eLXXo7.mp3",
  "parentFolderId": null,
  "isFolder": false,
  "createdAt": "2024-06-13T18:40:50.775Z",
  "updatedAt": "2024-06-22T04:06:55.033Z"
}
Draftbit