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

PATCH submission to accept partial patch rather than full #185

Open
drmowinckels opened this issue Aug 22, 2023 · 0 comments
Open

PATCH submission to accept partial patch rather than full #185

drmowinckels opened this issue Aug 22, 2023 · 0 comments

Comments

@drmowinckels
Copy link

drmowinckels commented Aug 22, 2023

Currently, the patch submission only accepts the entire submission answer as curl body to alter a submission

existing

{
    "answers": {
        "col1": "value",
        "col2": 1,
        "col3": false,
        "col4": "value"
    }
}

to update:

{
    "answers": {
        "col1": "value",
        "col2": 1,
        "col3": true, \\ <<--- change is here
        "col4": "value"
    }
}

It would have been ideal if patch could accept only the key-value pair you wanted to patch, rather than the entire body.

{
    "answers": {
        "col3": true
    }
}

This should make it easier for users to specify what they want to change. Currently, we"d need to run one get command to get all the data, then change the single value we wanted to patch, before submitting the request with the entire catalogue again.

This would also make the audit logs more succinct and clear, as they would only show the changes, so its easier to spot what has been changed.

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