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.

  • objectiqamah

    Always iqamah.

  • sourcerules | timetable

    Where your iqamah times come from: rules or timetable (your full-year iqamah timetable of the current year).

  • rulesobject

    How 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)
    • fajrany

      The fajr iqamah rule; null when it has none.

    • dhuhrany

      The dhuhr iqamah rule; null when it has none.

    • asrany

      The asr iqamah rule; null when it has none.

    • maghribany

      The maghrib iqamah rule; null when it has none.

    • ishaany

      The isha iqamah rule; null when it has none.

GET /v1/masjid/iqamah
curl "https://hub.masjidbox.com/v1/masjid/iqamah" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidIqamah
{
  "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 | timetable

    Changes where your iqamah times come from; left out, it stays. timetable needs a timetable of the current year (409 otherwise).

  • rulesobject

    A change to the iqamah rules: a prayer you leave out stays.

    Show child attributes (5)
    • fajrany

      Replaces the fajr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

    • dhuhrany

      Replaces the dhuhr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

    • asrany

      Replaces the asr rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

    • maghribany

      Replaces the maghrib rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

    • ishaany

      Replaces the isha rule (0 to 180 minutes after the athan, or HH:MM); null removes it.

Returns

Your iqamah after the write.

  • objectiqamah

    Always iqamah.

  • sourcerules | timetable

    Where your iqamah times come from: rules or timetable (your full-year iqamah timetable of the current year).

  • rulesobject

    How 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)
    • fajrany

      The fajr iqamah rule; null when it has none.

    • dhuhrany

      The dhuhr iqamah rule; null when it has none.

    • asrany

      The asr iqamah rule; null when it has none.

    • maghribany

      The maghrib iqamah rule; null when it has none.

    • ishaany

      The isha iqamah rule; null when it has none.

PATCH /v1/masjid/iqamah
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"}'
Example request · MasjidIqamahPatch
{
  "rules": {
    "fajr": {
      "minutesAfterAthan": 20
    }
  },
  "source": "rules"
}
200 · MasjidIqamah
{
  "object": "iqamah",
  "rules": {
    "asr": {
      "minutesAfterAthan": 15
    },
    "dhuhr": {
      "fixed": "13:30"
    },
    "fajr": {
      "minutesAfterAthan": 20
    },
    "isha": {
      "minutesAfterAthan": 10
    },
    "maghrib": {
      "minutesAfterAthan": 5
    }
  },
  "source": "rules"
}