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
- application/json
Request Body required
- id integer
the id of the unit to edit
description object
translationId integerthe translationId of the description item to edit
text stringthe description text to edit
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
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
{
"id": 0,
"slug": "string",
"name": "string",
"notation": "string",
"validation": true,
"descriptionId": 0
}