Default States

Create default states: POST /states/default

This functions checks which states are missing and tries to create the states.
If the update request parameter is set to true than it will update existing states
if a new version of the state is available. If the request parameter keepHistory is
set to true then is will not remove the current state/sensor with its values but updates
the state.

URLhttps://api.sense-os.nl/states/default
MethodPOST
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType
updateUpdate existing state sensors with a new version xsd:boolean
keep_historyKeep the original sensor when updating a state xsd:boolean

Request Body

An array with sensor ids to use as basis for the default states

{
    "sensors": [
        121,
        231
    ]
}

Create default states: GET /states/default/check

This functions checks which states are missing and tries to create the states.
By default it will not update existing states.

URLhttps://api.sense-os.nl/states/default/check
MethodGET
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType