K
Kinde7mo ago
ryno1234.

Organizations API doesn't provide full functionality

The Organizations API allows us to update an organization but certain fields we aren't able to retrieve the orginal values for to make sure that when we do inadvertantly update thier values from their current to the default value. For example, the Get Organization endpoint (GET /api/v1/organization) will return this:
{
"code": "string",
"name": "string",
"is_default": true,
"external_id": "string"
}
{
"code": "string",
"name": "string",
"is_default": true,
"external_id": "string"
}
Note that it doesn't provide a value for is_allow_registrations Now, when calling the Update Organization endpoint, which allows me to set a value for is_allow_registrations, I have no way to provide the current value making sure it doesn't default. This is particularly impossible with the .Net SDK because the model / arguments for this update function doesn't allow passing in null values for is_allow_registrations which might indicate during a PATCH operation to not update that particular field. So, essentially in .Net, any call to the UPDATE endpoint will set the value of is_allow_registrations in every case, so I must provide the current value to make sure I don't overwrite it.
11 Replies
Claire_Kinde
Claire_Kinde7mo ago
Hi there. Thanks for contacting us. I'll see if our .NET dev can shed some light. Note that he is in the US timezone, so responses can take extra time when coming off a weekend. Can you provide your Kinde business name or domain for us in the meantime. Thanks.
ryno1234.
ryno1234.OP7mo ago
Thanks Claire = Business name is "VoterFly"
VKinde
VKinde7mo ago
Hey! Looking into the fix for this, thanks for bringing this to our attention!
ryno1234.
ryno1234.OP6mo ago
Hi @VKinde - any update on this?
Oli - Kinde
Oli - Kinde6mo ago
Hi @ryno1234., I will get an update on this for you tomorrow. I know you also mentioned here (https://discord.com/channels/1070212618549219328/1236312350173433856/1243549077564690493) that you cannot set the homepage URL via API. I will also speak to my team on this tomorrow and get back to you.
ryno1234.
ryno1234.OP6mo ago
Thanks @Oli - Kinde
Oli - Kinde
Oli - Kinde6mo ago
Hey @ryno1234., We have added an item in our current software cycle for the following 2 changes to the Kinde Management API: 1. GET /api/v1/organization to include is_allow_registrations 2. Set or get Application homepage URI or Application login URI in API I will let you know when these are both live. Please don't hesitate to reach out if you come across anything else in the Kinde Management API that raises your eyebrows or is clearly missing.
ryno1234.
ryno1234.OP6mo ago
Thank you! The only other thing with the Organizations API that I feel is missing is the ability to set the logo via the API (post data? Provide a URL to a logo? etc.). This is functionality Kinde doesn't have that Auth0 did. I've had to remove brand logos from my sign in experience because of that. It's not the end of the world, but it was a step back in that one particular area. I appreciate your help.
Oli - Kinde
Oli - Kinde6mo ago
Hi @ryno1234., We have had a few discussiong internally on how to handle the case of uploading logos via API. We are heading in a direction where you have to upload a file as providing a URL has too many security risks. I will keep you in the loop as we progress with a solution for uploading logos via API.
ryno1234.
ryno1234.OP5mo ago
@Oli - Kinde - Any update on this API change? It was apparently added to the current software cycle back in late May.
Oli - Kinde
Oli - Kinde5mo ago
Hey @ryno1234., Thanks for reaching out about this again. The following 2 changes are still on my team's plate: 1. GET /api/v1/organization to include is_allow_registrations 2. Set or get Application homepage URI or Application login URI in API It did get pushed back to the following software cycle (the current one) due to other priorities. But a member of my team is about to start the work on it. I will let you know once these changes have been made. Apologies for the delay
Want results from more Discord servers?
Add your server