Fumadocs

New Planet

Request Body

Information about a new planet

application/json
  1. body

A planet in the Scalar Galaxy

id*integer
Formatint64
name*string
description?string|null
type?string
Value in"terrestrial""gas_giant""ice_giant""dwarf""super_earth"
habitabilityIndex?number

A score from 0 to 1 indicating potential habitability

Formatfloat
Range0 <= value <= 1
physicalProperties?
atmosphere?array<>

Atmospheric composition

discoveredAt?string
Formatdate-time
image?string|null
satellites?array<>
creator?

A user

tags?array<string>
successCallbackUrl?string

URL which gets invoked upon a successful operation

Formaturi
failureCallbackUrl?string

URL which gets invoked upon a failed operation

Formaturi

Response Body

Return a 200 status to indicate that the data was received successfully

Example Requests
POST/newPlanet

A planet in the Scalar Galaxy

Request Body
application/json
{
  "id": 1,
  "name": "Mars"
}