Create a new phenomenon
Creates a new phenomenon from the information given in the requestBody
Header Parameters
- Authorization string required
Token retrieved from the opensensemap API LogIn
- application/json
Request Body required
label object[]
array with label objects in different languages specified for the phenomenon
value stringthe label text itself
lang stringlanguageCode for the language of the label. e.g.
en,de,...description object
text stringthe description text
markdown object
text stringthe markdown text
domain object[]
array with the domains connected to the phenomenon
domain integerthe id of the domain to connect
unit object[]
array with the units and ranges the phenomenon is measured in
unitUri integerthe id of the unit to connect
min integerminimum of the unit range
max integermaximum of the unit range
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- id integer
the id of the created phenomenon
- slug string
the slug of the created phenomenon
- validation boolean
boolean that is true if the information is validated by an admin
- labelId integer
the id of the created translation item
- descriptionId integer
the id of the created translation item
- markdownId integer
the id of the created translation item
{
"id": 0,
"slug": "string",
"validation": true,
"labelId": 0,
"descriptionId": 0,
"markdownId": 0
}