example-data.com
Menu
Browse docs and collections

Overview

tasks / #304

Migrate API endpoint

projectId
projects/37
assigneeUserId
Oran Torphy @oran_torphy
title
Migrate API endpoint
description
Trans arca temperantia charisma thorax.
status
todo
priority
normal
dueDate
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 304,
  "projectId": 37,
  "assigneeUserId": 189,
  "title": "Migrate API endpoint",
  "description": "Trans arca temperantia charisma thorax.",
  "status": "todo",
  "priority": "normal",
  "dueDate": null,
  "createdAt": "2026-03-18T19:47:24.431Z",
  "updatedAt": "2026-03-26T17:21:50.377Z"
}