index_id in POST Phone (Single User) -- https://api.sky.blackbaud.com/school/v1/users/{user_id}/phones

Hi,


I replied to a user who said they could POST new phone #s via the School API, but I thought I should start a new topic.


In the POST Phone (Single User), the JSON has "index_id" which is in the Request Body doc with the following:

    integer The Index ID of the phone number
index_id
How/where do I get that index_id? If I'm posting a new number, how would I already have an index_id?! I get the type_id that represents the Home", "Wireless", etc. but am totally flummoxed by the index_id. I feel like I've looked everywhere in the documentation/forums/etc. and found nothing that tells me the origin, or for that matter, any concrete examples.


Thanks in advance for any help!


Cheers,

Scott


 

Comments

  • Hi Scott,

    I'm exploring whether this is a bug. We should get an answer shortly for you.
  • I have a similar issue with non-constituent relations. Since POSTing a new relationship requires the relation_id, one would have to have created the non-constituent which I don't think is possible via SKY. In my case, I want to post a new employer for a constituent, but don't want to make the organization a constituent -- nor would I ever unless the org becomes a matching donor.


    So for now, a workaround is creating the non-constituent in NXT, which is fine for new ones until there's a way to do it via SKY. Added it to this because it seems to be the same chicken/egg problem with POST.


    Cheers,

    Scott
  • Bryna Gleich
    Bryna Gleich Blackbaud Employee
    Tenth Anniversary Kudos 3 Name Dropper Participant
    Hi Scott!


    Thanks for bringing this to our attention. Our developers have taken a look at it and we have good news to share!


    You no longer need to provide the index_id when you use the POST Phone (single user) endpoint.
    https://developer.sky.blackbaud.com/docs/services/school/operations/V1UsersByUser_idPhonesPost


    Thanks and have a good weekend!

    Bryna Gleich (technical writer)