Resources
- ownerUserId
-
Jewell Olson @jewell_olson2
- name
- Resources
- mimeType
- application/x-directory
- sizeBytes
- 0
- url
- https://files.example.com/folders/105
- parentFolderId
- files/29
- isFolder
- true
- createdAt
- updatedAt
Overview
files / #105
Resources
#105
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/105" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/105" ); const file = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/files.d.ts https://example-data.com/types/files.d.ts
import type { File } from "./types/files";
const res = await fetch(
"https://example-data.com/api/v1/files/105"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/105"
)
file = res.json() Response
{
"id": 105,
"ownerUserId": 68,
"name": "Resources",
"mimeType": "application/x-directory",
"sizeBytes": 0,
"url": "https://files.example.com/folders/105",
"parentFolderId": 29,
"isFolder": true,
"createdAt": "2024-09-29T08:41:45.179Z",
"updatedAt": "2024-12-28T01:36:41.208Z"
}