UdiWatch

API key or session

PATCH /v1/watches/{id}

Rename a watch. Body is label. The id has to belong to the account. A missing watch is 404.

Auth. Body {"label"}. Changes the label you see. It does not change the subject and it does not re-read the register.

curl -sS -X PATCH "$BASE/v1/watches/15" \
  -H "X-API-Key: $UW_KEY" -H 'Content-Type: application/json' \
  -d '{"label":"Shelf cannula"}'

Returns {"watch": {…}}. A watch that is not on this account is 404. A non-numeric id is 400.

POST /v1/watchesDELETE /v1/watches/{id}