GET list of Religion Type ID's and descriptions

We'd like a route for us to get the Religion Type ID, so we can post to the Religion field.
  • Guest
  • May 15 2017
  • Shipped
  • Attach files
  • Admin
    Stephen Boyle commented
    July 26, 2023 16:14

    The endpoint GET Types table values will get any table defined in the system.

  • Guest commented
    May 17, 2017 16:23

    Not sure if the ID are different depending on the sites but this is what I see on mine.

    2993: Anglican
    2994: Baptist
    2995: Buddhist
    2996: Catholic
    2997: Christian
    2998: Episcopal
    2999: Greek Orthodox
    3000: Hindu
    3001: Islam
    3002: Jewish
    3003: Lutheran
    3004: Methodist
    3005: Non-Denominational
    3006: Presbyterian
    3007: Protestant

    It would be a PUT not a POST since it related directly with the user's general field:

    Request URL:  https://<site>.myschoolapp.com/api/user/4125343/?t=${token}

    Method: PUT

    PUT Params:

    {
        "id": "4125343",
        "ReligionTypeId": "3000"
    }