Skip to content
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

projects-api #8874

Open
winfried-van-loon-goudse opened this issue Jan 8, 2025 · 0 comments
Open

projects-api #8874

winfried-van-loon-goudse opened this issue Jan 8, 2025 · 0 comments

Comments

@winfried-van-loon-goudse
Copy link

winfried-van-loon-goudse commented Jan 8, 2025

Please use the form below, leaving the prefilled data to help us. Thank you.

Page link: projects-api

Document link: projects-api-v2.md

My Issue/Suggestion

Currently, in the Projects API, the user-id is used as a parameter for multiple API calls. However, it is not clear which API endpoint can be used to obtain the current user's user-id.

Although inefficient, a possible workaround would be:

  1. To call the Deploy API first, get the apps for the user,
  2. Then use /projects/{project-id}/members for a random app, which the user must be a part of,
  3. Then for each member of that project, try the /users/{user-id}/projects,
  4. And for the member that does not return a 401 but instead a 200, that must be the user's user-id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant