example-data.com
Menu
Browse docs and collections

Overview

tasks / #365

Migrate error handling

projectId
projects/44
assigneeUserId
Stephan Heller @stephan.heller
title
Migrate error handling
description
Vivo suadeo eveniet.
status
done
priority
normal
dueDate
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 365,
  "projectId": 44,
  "assigneeUserId": 82,
  "title": "Migrate error handling",
  "description": "Vivo suadeo eveniet.",
  "status": "done",
  "priority": "normal",
  "dueDate": null,
  "createdAt": "2025-05-31T06:56:21.649Z",
  "updatedAt": "2026-02-16T09:28:13.958Z"
}