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
- application/json
Request Body required
- name string
name of the unit
- notation string
notation of the unit
description object
text stringthe description text
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
}