Skip to content
API v2v2.0.0 · 11 endpoints
GitHubDiscord

This endpoint was used to delete planets. Unfortunately, that caused a lot of trouble for planets with life. So, this endpoint is now deprecated and should not be used anymore.

Planets
DELETE
https://galaxy.scalar.com/planets/{planetId}
Try it
Authorization (bearerAuth)

path Parameters

planetIdinteger <int64>required

The ID of the planet to get

Example 1

Authorization

  • bearerAuth (bearer)

    JWT Bearer token authentication

  • basicAuth (basic)

    Basic HTTP authentication

  • apiKeyQuery (query: api_key)

    API key query parameter

  • apiKeyHeader (header: X-API-Key)

    API key request header

  • apiKeyCookie (cookie: api_key)

    API key browser cookie

  • oAuth2 (oauth2)

    OAuth 2.0 authentication

  • openIdConnect (openIdConnect)

    OpenID Connect Authentication

Responses

204

No Content

No content schema provided.

404

Not Found

Media Type
NotFoundError

Error response for resource not found (RFC 7807). Returned when the requested resource does not exist.

type?
string
title?
string
status?
integer <int64>
detail?
string

Code Samples

curl -X DELETE 'https://galaxy.scalar.com/planets/{planetId}' \
  -H 'Authorization: Basic <base64-credentials>' \
  -H 'X-API-Key: <X-API-Key>'

Example Responses

{
  "type": "https://example.com/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "The resource you are trying to access does not exist."
}