example-data.com
Menu
Browse docs and collections

Overview

tasks / #542

Add error handling

projectId
projects/67
assigneeUserId
Anne Hamill @anne_hamill75
title
Add error handling
description
Cernuus territo conor sollicito arma templum colo tepidus doloribus umerus.
status
todo
priority
normal
dueDate
2026-04-24
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 542,
  "projectId": 67,
  "assigneeUserId": 9,
  "title": "Add error handling",
  "description": "Cernuus territo conor sollicito arma templum colo tepidus doloribus umerus.",
  "status": "todo",
  "priority": "normal",
  "dueDate": "2026-04-24",
  "createdAt": "2026-03-18T02:21:29.132Z",
  "updatedAt": "2026-04-20T13:09:29.186Z"
}