Other GETs and POSTs are working fine, but this is my first time using the “Users phone create” endpoint. Instead of a meaningful error message, I get an unhelpful 500 error.
I see that this appears to be an issue with phones in the Constituent API as well, and the Blackbaud K12 web front end has been particularly flaky with phone numbers recently (including giving me a 403 Forbidden Error when trying to change phone types):
Here's my (edited for privacy) request:
-X POST --header "Content-type: application/json" --header "Bb-Api-Subscription-Key: [SNIPPED]" --header "Authorization: Bearer [SNIPPED]" --data-raw "{\\"links\\":[{\\"id\\":4905,\\"shared_relationship\\":\\"Parent\\",\\"shared_user\\":\\"John Doe\\",\\"type_id\\":\\"Wireless\\",\\"user_id\\":4[SNIPPED]2}],\\"number\\":\\"+1-250-555-1212\\",\\"type_id\\":4905}"
(in my case, typeid 4905="Home 2". I'm not entirely clear why I would use typeid:4905 (Home 2) for the main constituent and then id:4905 & typeid:"Wireless" in the links array, but that's the way the info was presented when I did a GET and the SKY API documentation isn't at all clear. From the GET:
{
"id" : 4[SNIPPED]1,
"index_id" : 3[SNIPPED]0,
"links" :
[
{
"id" : 4905,
"shared" : false,
"type_id" : "Home 2",
"user_id" : 4[SNIPPED]5
},
{
"id" : 4905,
"shared" : true,
"shared_relationship" : "Parent",
"shared_user" : "John Doe",
"type_id" : "Wireless",
"user_id" : 4[SNIPPED]2
}
],
"number" : "+1-250-555-1212",
"phone_type" : "Home 2",
"type_id" : 4905,
"user_id" : 4[SNIPPED]5
}
Is this 500 error a bug? or am I doing something wrong…and if so, what?