Add/update activity day
Add or update an activity day.
Header Parameters
The current timezone of the user. Not providing the value might affect the accuracy of how we calculate days and streaks.
Request Body
Possible values: >= 1
Seconds spent reading the current request's ranges
Possible values: Value must match regular expression ^(\d+:\d+-\d+:\d+(?:,\d+:\d+-\d+:\d+)*)$
Current request's read range of Ayahs
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
Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}$
The date of the activity day, can be today or a past date. If not passed, default to today
Possible values: [QURAN
, LESSON
]
The type of the activity day
- 200
- 403
- 404
- 409
- 422
- 500
Request has been handled successfully.
Schema
{
"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"
}
}
A resource of the same type being created already exists.
Schema
error object
{
"success": false,
"error": {
"code": "UniqueViolationError",
"message": "Goal of the same type already exists"
}
}
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"
}
}