Skytale Preference

Not all the user will have the same experience in Skytale.

Users can save their preference in the system and retrieve to enhance and modify the behaviuor of the API and Web App.

To see a list of preferences to be added, call the URL /api/1/preferencetypes.

{
    "preferences": [
        {
            "id": 1,
            "name": "currency",
            "type": "string",
            "created": "2022-07-01T14:01:43.000Z"
        }
    ]
}
Field Description Type Possible values
id id of the preference number
name name of the preference string
type type of the value of the preference string string number object
created creation date of the preference string -

Change the value of the preference

In order to change the currenct user's preferences, POST the preference you want to change to /user/preferences with the new value:

{
  "preferences": [
    {
      "value": "usd",
      "preferenceType": {
        "id": 1
      }
    }
  ]
}

making sure that the preferenceType id correspond to the id of the preference you want to change.

A user can change multiple preferences at once.

results matching ""

    No results matching ""