example-data.com
Menu
Browse docs and collections

Overview

tasks / #286

Document error handling

projectId
projects/34
assigneeUserId
Brock Hackett @brock.hackett
title
Document error handling
description
Amiculum stabilis ater coadunatio arma viridis deinde volva.
status
done
priority
normal
dueDate
2026-07-11
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tasks/286" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tasks/286"
);
const task = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/tasks.d.ts https://example-data.com/types/tasks.d.ts
import type { Task } from "./types/tasks";

const res = await fetch(
  "https://example-data.com/api/v1/tasks/286"
);
const task = (await res.json()) as Task;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tasks/286"
)
task = res.json()

Response

{
  "id": 286,
  "projectId": 34,
  "assigneeUserId": 161,
  "title": "Document error handling",
  "description": "Amiculum stabilis ater coadunatio arma viridis deinde volva.",
  "status": "done",
  "priority": "normal",
  "dueDate": "2026-07-11",
  "createdAt": "2025-10-24T12:30:33.392Z",
  "updatedAt": "2025-12-15T05:02:05.038Z"
}