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

Create entities in bulk via API (JSON) #573

Closed
matthew-white opened this issue Dec 20, 2023 · 1 comment · Fixed by getodk/central-backend#1070
Closed

Create entities in bulk via API (JSON) #573

matthew-white opened this issue Dec 20, 2023 · 1 comment · Fixed by getodk/central-backend#1070
Assignees
Labels
backend Requires a change to the API server enhancement New feature or behavior entities Multiple Encounter workflows

Comments

@matthew-white
Copy link
Member

matthew-white commented Dec 20, 2023

We're currently thinking for v2024.1 that Frontend will parse the uploaded CSV, then send an array of entity objects to Backend (in JSON). Backend should then create those entities in bulk (in a single transaction). Frontend will also pass the name of the uploaded CSV file. This approach will allow API integrations to create entities in bulk in various ways (not just via CSV).

This bulk-create endpoint is needed for #589.

@matthew-white matthew-white added enhancement New feature or behavior backend Requires a change to the API server entities Multiple Encounter workflows labels Dec 20, 2023
@ktuite ktuite self-assigned this Jan 5, 2024
@matthew-white
Copy link
Member Author

Frontend will also pass the name of the uploaded CSV file.

What other metadata about the file should Frontend pass to Backend? Maybe the size of the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Requires a change to the API server enhancement New feature or behavior entities Multiple Encounter workflows
Projects
Status: ✅ done
Development

Successfully merging a pull request may close this issue.

2 participants