Skip to main content

Create a new unit

Creates a new unit from the information given in the requestBody

Header Parameters
  • Authorization string required

    Token retrieved from the opensensemap API LogIn

Request Body required
  • name string

    name of the unit

  • notation string

    notation of the unit

  • description object
  • text string

    the description text

Responses

OK


Schema
  • id integer

    the id of the created unit

  • slug string

    the slug of the created unit

  • name string

    name of the unit

  • notation string

    notation of the unit

  • validation boolean

    boolean that is true if the information is validated by an admin

  • descriptionId integer

    the id of the created translation item