Sensors & Sharing

Share with user: POST /sensors/{id}/users

This method will share the sensor and all its data with the specified user. Only the owner of the sensor is able to upload data, mutate sensors and share the sensor with users. At leas a user id or username needs to be specified.

URLhttps://api.sense-os.nl/sensors/{id}/users
MethodPOST
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Request Body

The user object, with either a user id or username.

{
    "user": {
        "id": "3",
        "username": "testuser"
    }
}

List users: GET /sensors/{id}/users

This method will list the users that have access to the sensor.

URLhttps://api.sense-os.nl/sensors/{id}/users
MethodGET
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Unshare sensor: DELETE /sensors/{id}/users/{user_id}

This method removes a user from a sensor, which removes the access to the sensor for this user.

URLhttps://api.sense-os.nl/sensors/{id}/users/{user_id}
MethodDELETE
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Unshare all your sensors: DELETE /sensors/users

Unshare all sensors of the logged in user

URLhttps://api.sense-os.nl/sensors/users
MethodDELETE
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType