example-data.com

files / #195

ownerUserId
56
name
audio-7rkBAJ.mp3
mimeType
audio/mpeg
sizeBytes
43601716
url
https://files.example.com/objects/195/audio-7rkBAJ.mp3
parentFolderId
12
isFolder
false
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/files/195"
)
file = res.json()
{
  "id": 195,
  "ownerUserId": 56,
  "name": "audio-7rkBAJ.mp3",
  "mimeType": "audio/mpeg",
  "sizeBytes": 43601716,
  "url": "https://files.example.com/objects/195/audio-7rkBAJ.mp3",
  "parentFolderId": 12,
  "isFolder": false,
  "createdAt": "2024-05-28T18:30:42.638Z",
  "updatedAt": "2024-07-14T13:24:40.721Z"
}
Draftbit