UdiWatch

API key or session

POST /v1/password

Set a password. A session changes that user. An API key changes the owner password. At least 8 characters.

Auth. Body {"password"}. With a session, sets that user’s password. With an API key, sets the owner’s password. Shorter than 8 characters is 400.

curl -sS -X POST "$BASE/v1/password" \
  -H "X-API-Key: $UW_KEY" -H 'Content-Type: application/json' \
  -d '{"password":"a-new-password"}'

The response is the account object, the same shape as GET /v1/me.

GET /v1/mePOST /v1/users