Toshl Developer

Update setting

Update a specific setting.

PUT /me/settings/{id}

Required scope:

Parameters

id
required
string

Setting id.

value
required
string

Setting value. The type depends on the setting id.

modified
required
string

Specifies when the setting was last modified.

Request

$ curl https://api.toshl.com/me/settings/notification_due_email \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{json}'

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "id": "notification_due_email",
  "value": true,
  "modified": "2012-09-04T13:55:15Z"
}