Welcome to the Kinde community.

A
A
A
M
T

Kinde management api response codes

Where can I find the response codes when using the Kinde Management API?
For example, when updating user’s property, I get "PROPERTY_VALUE_UPDATED" on success:

import { Users } from '@kinde/management-api-js';

const result = await Users.updateUserProperties(...);

if (result.code === "PROPERTY_VALUE_UPDATED") {
  ...
}
I’d like to know the possible response codes when performing other actions, e.g. await Users.deleteUser(…)
Are these codes documented somewhere?

A
M
O
5 comments

we have some schemas listed out here https://kinde.com/api/docs/#schemas but let me check with the team

I could also see from TypeScript definitions that code is a string, but would like to know the possible values.

some of the SDKs may be reliant on this current response. We could update, but would need to go thru all the APIs + check nothing breaks in any of the SDKs - as a work around are you able to check for a 200 response instead of PROPERTY_VALUE_UPDATED?

The result I get from await Users.updateUserProperties(...) doesn’t contain the response status code as far as I can tell. How would you suggest to check for 200?

- also just checking here if you are waiting on a response for your query here? Or was your query resolved?

Add a reply
Sign up and join the conversation on Slack
Join