example-data.com
Menu
Browse docs and collections

Overview

tasks / #407

Implement API endpoint

projectId
projects/49
assigneeUserId
title
Implement API endpoint
description
Cinis crur accendo virtus sonitus deprecator crux placeat venustas.
status
todo
priority
high
dueDate
2026-08-01
createdAt
updatedAt

Component variants

Related

References

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 407,
  "projectId": 49,
  "assigneeUserId": null,
  "title": "Implement API endpoint",
  "description": "Cinis crur accendo virtus sonitus deprecator crux placeat venustas.",
  "status": "todo",
  "priority": "high",
  "dueDate": "2026-08-01",
  "createdAt": "2026-02-16T02:02:58.099Z",
  "updatedAt": "2026-03-08T07:34:11.726Z"
}