Post API v1 sport

post/api/v1/sport/

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

namestring required
popularityinteger nullable required

Example request

{
  "$schema": "https://example.com/schemas/CreateSportRequest.json",
  "name": "Women's Soccer",
  "popularity": 20000
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

idstring required

ID of the sport

namestring required

Name of the sport

popularityinteger

Number of players

Example response

{
  "$schema": "https://example.com/schemas/SportResponse.json",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Women's Soccer",
  "popularity": 20000
}

Changes

No recorded changes to this operation across all 16 revisions of this API.