Your masjid · Prayer times
Your iqama
Where your iqama times come from (the rules, or your full-year timetable) and the rules: minutes after the athan, or a fixed time. The source changes only when you send it.
Right on the key: Prayer times: read for a read, edit (secret key) for a write.
Your iqamah
GET/v1/masjid/iqamah
Where your iqamah times come from (source: rules or timetable, your full-year iqamah timetable of the current year) and the rules (rules: per prayer, { "minutesAfterAthan": 20 } or { "fixed": "05:30" }). The rules stay readable while the timetable gives your iqamah times.
Parameters
No parameters.
Returns
Your iqamah.
objectiqamahAlways
iqamah.sourcerules | timetableWhere your iqamah times come from:
rulesortimetable(your full-year iqamah timetable of the current year).rulesobjectHow each iqamah time is set: minutes after the athan, or a fixed time; kept, and editable, while a full-year iqamah timetable gives them.
Show child attributes (5)
fajranyThe fajr iqamah rule; null when it has none.
dhuhranyThe dhuhr iqamah rule; null when it has none.
asranyThe asr iqamah rule; null when it has none.
maghribanyThe maghrib iqamah rule; null when it has none.
ishaanyThe isha iqamah rule; null when it has none.
curl "https://hub.masjidbox.com/v1/masjid/iqamah" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"object": "iqamah",
"rules": {
"asr": {
"minutesAfterAthan": 15
},
"dhuhr": {
"fixed": "13:30"
},
"fajr": {
"minutesAfterAthan": 20
},
"isha": {
"minutesAfterAthan": 10
},
"maghrib": {
"minutesAfterAthan": 5
}
},
"source": "rules"
}Change your iqamah
PATCH/v1/masjid/iqamah
JSON Merge Patch per prayer in rules: a rule you send replaces the prayer's, null removes it, a prayer you leave out stays. source changes only when you send it: rules makes your iqamah times come from the rules again, timetable from your full-year iqamah timetable of the current year, and is refused (409) while you have none: PUT it first. Changing the rules never changes the source. An empty body changes nothing. Needs a secret key with Prayer times: edit. 30 writes an hour and 300 a day per organization.
Parameters
No parameters.
Request body
sourcerules | timetableChanges where your iqamah times come from; left out, it stays.
timetableneeds a timetable of the current year (409 otherwise).rulesobjectA change to the iqamah rules: a prayer you leave out stays.
Show child attributes (5)
fajranyReplaces the fajr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
dhuhranyReplaces the dhuhr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
asranyReplaces the asr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
maghribanyReplaces the maghrib rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
ishaanyReplaces the isha rule (0 to 180 minutes after the athan, or HH:MM); null removes it.
Returns
Your iqamah after the write.
objectiqamahAlways
iqamah.sourcerules | timetableWhere your iqamah times come from:
rulesortimetable(your full-year iqamah timetable of the current year).rulesobjectHow each iqamah time is set: minutes after the athan, or a fixed time; kept, and editable, while a full-year iqamah timetable gives them.
Show child attributes (5)
fajranyThe fajr iqamah rule; null when it has none.
dhuhranyThe dhuhr iqamah rule; null when it has none.
asranyThe asr iqamah rule; null when it has none.
maghribanyThe maghrib iqamah rule; null when it has none.
ishaanyThe isha iqamah rule; null when it has none.
curl -X PATCH "https://hub.masjidbox.com/v1/masjid/iqamah" \
-H "Authorization: Bearer $MASJIDBOX_KEY" \
-H "Content-Type: application/json" \
-d '{"rules":{"fajr":{"minutesAfterAthan":20}},"source":"rules"}'{
"rules": {
"fajr": {
"minutesAfterAthan": 20
}
},
"source": "rules"
}{
"object": "iqamah",
"rules": {
"asr": {
"minutesAfterAthan": 15
},
"dhuhr": {
"fixed": "13:30"
},
"fajr": {
"minutesAfterAthan": 20
},
"isha": {
"minutesAfterAthan": 10
},
"maghrib": {
"minutesAfterAthan": 5
}
},
"source": "rules"
}