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

Allow User Registration Update using the applicationId from the URL segment #1127

Closed
robotdan opened this issue Mar 2, 2021 · 0 comments
Closed
Assignees
Labels
DE (developer-experience) documentation An issue or clarification on documentation enhancement New feature or request
Milestone

Comments

@robotdan
Copy link
Member

robotdan commented Mar 2, 2021

Allow User Registration Update using the applicationId from the URL segment

Description

I want to be able to PUT or PATCH the User Registration using a URL that looks like this /api/user/registration/{userId}/{applicationId}.

Currently the applicationId is only accepted in the request body for this action.

If it is provided on the URL, it will take precedence over the request body. This allows a PATCH request such as

/api/user/registration/a7e04d53-0426-47e7-9cb6-bc3406d29c78/fd7faeb7-6d4b-4217-af1d-edef30902adf

{
  "registration": {
    "username": "Changed"
   }
} 

Previously it would have only worked as:

/api/user/registration/a7e04d53-0426-47e7-9cb6-bc3406d29c78

{
  "registration": {
    "applicationId": "fd7faeb7-6d4b-4217-af1d-edef30902adf"
    "username": "Changed"
   }
} 

The old way will still work. Need to update doc with this new option.

@robotdan robotdan self-assigned this Mar 2, 2021
@robotdan robotdan added enhancement New feature or request DE (developer-experience) documentation An issue or clarification on documentation labels Mar 2, 2021
@robotdan robotdan added this to the 1.24.1 milestone Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DE (developer-experience) documentation An issue or clarification on documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant