Add or update preference
Add or update one user preferences group like favorite Tafsirs or translations.
Query Parameters
Possible values: [1
, 2
, 3
, 4
, 5
, 6
, 7
, 11
, 19
]
The id of the Mushaf being used.
1 = QCFV2
2 = QCFV1
3 = Indopak
4 = UthmaniHafs
5 = KFGQPCHAFS
6 = Indopak15Lines
7 = Indopak16Lines
11 = Tajweeed
19 = QCFTajweedV4
Request Body
Possible values: [type
]
Possible values: [readingPreference
, selectedWordByWordLocale
, wordClickFunctionality
]
Possible values: [tafsirFontScale
, quranTextFontScale
, translationFontScale
, wordByWordFontScale
, quranFont
, mushafLines
]
Possible values: [selectedTranslations
]
Possible values: [selectedTafsirs
]
Possible values: [reciter
, playbackRate
, showTooltipWhenPlayingAudio
, enableAutoScrolling
, repeatSettings
]
Possible values: [language
]
Possible values: [en
, ar
, bn
, fa
, fr
, id
, it
, nl
, pt
, ru
, sq
, th
, tr
, ur
, zh
, ms
]
Possible values: [auto
, light
, sepia
, dark
]
Possible values: [translation
, reading
]
Possible values: [en
, ur
, id
, bn
, tr
, fa
, ru
, hi
, de
, ta
, inh
]
Possible values: [play-audio
, no-audio
]
Possible values: [code_v1
, code_v2
, text_uthmani
, text_indopak
, qpc_uthmani_hafs
, tajweed
, tajweed_v4
]
Possible values: [15_lines
, 16_lines
]
Possible values: >= 1
and <= 10
Possible values: >= 1
and <= 6
Possible values: [0.25
, 0.5
, 0.75
, 1
, 1.25
, 1.5
, 1.75
, 2
]
Possible values: [tafsirs
, translations
, audio
, theme
, quranReaderStyles
, reading
, language
]
The preference group to be added or updated.
The preference key to be added or updated.
The preference value to be added or updated.
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
Schema
data object
Possible values: [preference updated
]
{
"success": true,
"data": {}
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
Schema
error object
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
Schema
error object
{
"success": false,
"error": {
"code": "NotFoundError",
"message": "The resource you're looking for does not exist"
}
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
error object
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
Schema
error object
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}