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

Update entity data with PATCH request #797

Closed
ktuite opened this issue Mar 20, 2023 · 2 comments · Fixed by #831
Closed

Update entity data with PATCH request #797

ktuite opened this issue Mar 20, 2023 · 2 comments · Fixed by #831
Assignees
Labels
entities Multiple Encounter workflows

Comments

@ktuite
Copy link
Member

ktuite commented Mar 20, 2023

PATCH /v1/projects/:projectId/datasets/:name/entities/:uuid
Can specify updated values for inner data (any property in the dataset) and label in an entity

For this first version, you can send just the data change you want to apply, and we don't enforce any entity versioning (like with the deprecated instance id in submission edits). Version numbers to be figured out in issue #832.

@ktuite ktuite added the entities Multiple Encounter workflows label Mar 20, 2023
@github-project-automation github-project-automation bot moved this to 🕒 backlog in ODK Central Mar 20, 2023
@ktuite ktuite self-assigned this Mar 20, 2023
@issa-tseng
Copy link
Contributor

by the HTTP spec PUT permits creation of a resource but i'm guessing we're not doing that? are we only doing update in general this release, no create?

@ktuite ktuite moved this from 🕒 backlog to ✏️ in progress in ODK Central Apr 11, 2023
@lognaturel
Copy link
Member

I believe that we're only going to do PATCH for now per discussion at https://github.com/getodk/central-backend/pull/812/files#r1158006629. Create will be through POST, update will be through PATCH with either some or all properties provided.

@ktuite ktuite changed the title Update entity data Update entity data with PATCH request Apr 14, 2023
@ktuite ktuite mentioned this issue Apr 14, 2023
2 tasks
@ktuite ktuite linked a pull request Apr 18, 2023 that will close this issue
2 tasks
@github-project-automation github-project-automation bot moved this from ✏️ in progress to ✅ done in ODK Central Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entities Multiple Encounter workflows
Projects
Status: ✅ done
Development

Successfully merging a pull request may close this issue.

3 participants