Create a new domain
Creates a new domain 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 domain
value stringthe label text itself
lang stringlanguageCode for the language of the lebel. e.g.
en,de,...description object
text stringthe description text
phenomenon object[]
array with the phenomena to connect to the domain
phenomenon integerthe id of the phenomenon to connect
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- id integer
the id of the created domain
- slug string
the slug of the created domain
- 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
{
"id": 0,
"slug": "string",
"validation": true,
"labelId": 0,
"descriptionId": 0
}