example-data.com
Menu
Browse docs and collections

Overview

tasks / #162

Refactor error handling

projectId
projects/21
assigneeUserId
Marlin Goldner @marlin_goldner6
title
Refactor error handling
description
Brevis civitas atavus sub caritas vereor.
status
blocked
priority
urgent
dueDate
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 162,
  "projectId": 21,
  "assigneeUserId": 160,
  "title": "Refactor error handling",
  "description": "Brevis civitas atavus sub caritas vereor.",
  "status": "blocked",
  "priority": "urgent",
  "dueDate": null,
  "createdAt": "2025-11-19T10:46:24.464Z",
  "updatedAt": "2026-03-16T21:26:08.099Z"
}