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:
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
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.
Thanks Claire = Business name is "VoterFly"
Hey! Looking into the fix for this, thanks for bringing this to our attention!
Hi @VKinde - any update on this?
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.
Thanks @Oli - Kinde
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.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.
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.
@Oli - Kinde - Any update on this API change? It was apparently added to the current software cycle back in late May.
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