example-data.com
Menu
Browse docs and collections

Overview

tasks / #201

Test error handling

projectId
projects/25
assigneeUserId
Jennifer Stoltenberg @jennifer_stoltenberg
title
Test error handling
description
Civitas praesentium abeo angustus dolorum votum spectaculum centum charisma.
status
done
priority
normal
dueDate
2026-05-29
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tasks/201"
);
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/201"
);
const task = (await res.json()) as Task;

Python example

import requests

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

Response

{
  "id": 201,
  "projectId": 25,
  "assigneeUserId": 25,
  "title": "Test error handling",
  "description": "Civitas praesentium abeo angustus dolorum votum spectaculum centum charisma.",
  "status": "done",
  "priority": "normal",
  "dueDate": "2026-05-29",
  "createdAt": "2026-03-06T19:34:05.318Z",
  "updatedAt": "2026-04-03T05:11:49.126Z"
}