Users

Read the current user: GET /users/current

This method returns the details of the current user.

URLhttps://api.sense-os.nl/users/current
MethodGET
Need AuthTrue

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Update user: PUT /users/{id}

This method updates the details of the user. Only the user_id of the current user can be selected.

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

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType

Request Body

{
    "user": {
        "email": "jan@test.nl",
        "username": "janjager",
        "name": "Jan",
        "surname": "Jager",
        "mobile": "0031612345678",
        "password": "098f6bcd4621d373cade4e832627b4f6"
    }
}

Delete user: DELETE /users/{id}

This method will remove the user from the database together with his external services.

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

Request Headers

NameDefaultTypeStyleRequired
Accept*xsd:stringheaderTrue

Request Parameters

NameDescriptionType