Skip to main content

Edit a unit

Edits a specific unit by the information given in the requestBody

Header Parameters
  • Authorization string required

    Token retrieved from the opensensemap API LogIn

Request Body required
  • id integer

    the id of the unit to edit

  • description object
  • translationId integer

    the translationId of the description item to edit

  • text string

    the description text to edit

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