These docs are for v2.0. Click to read the latest docs for v3.3.

Sometimes the app needs to store additional data about the user like gender, avatar, hair color, etc. In that case the app can use the endpoint '/me/settings' in order to set and get the user’s settings. The user’s settings are not meant to store large amounts of data. It’s more likely a small key/value store.

Updates the settings key/value object.

There is a special key password that will update the user’s password with the app.

curl -i -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: SESSION_TOKEN" \
  -d '{"hair-color": "pink", "phones": ["13246578","99833212"]}' \
  -X PUT "https://api.thethings.io/v2/me/settings" -k

📘

If your app needs to store more complex data please look at the section "Objects. Storing App data".

Language
Click Try It! to start a request and see the response here!