-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clientEnvironment to CNHi documentation #142
Conversation
@@ -2031,7 +2032,7 @@ A "CNHI Credentials" resource as a JSON. | |||
const axios = require('axios') | |||
const TOKEN = 'YOUR_TOKEN' | |||
|
|||
const endpoint = 'https://api.withleaf.io/services/usermanagement/api/cnhi-credentials/{id}' | |||
const endpoint = 'https://api.withleaf.io/services/usermanagement/api/cn-hi-credentials/{id}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow 😓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just a single extra fix
@@ -2387,7 +2395,8 @@ A CNHI Credentials with status. | |||
```shell | |||
curl -X POST \ | |||
-H 'Authorization: Bearer YOUR_TOKEN' \ | |||
-d '{"clientId": "str","clientSecret": "str","refreshToken": "str"}' \ | |||
-H 'Content-Type: application/json' \ | |||
-d '{"clientId": "str", "clientSecret": "str", "refreshToken": "str", "clientEnvironment": "STAGE or PRODUCTION"}' \ | |||
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cnhi-credentials' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cnhi-credentials' | |
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cn-hi-credentials' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sadly, that is correct
No description provided.