Skip to content

Conversation

@mikehgrantsgov
Copy link
Collaborator

Summary

Fixes #7081

Changes proposed

Add a new PUT /alpha/forms/{form_id}/form_instructions/{form_instruction_id} endpoint to handle uploading and updating form instruction documents.
Implemented upsert_form_instruction service to manage S3 file uploads, database updates for FormInstruction
Added tests

Context for reviewers

This endpoint enables the management of form instruction files. It requires the UPDATE_FORM privilege.

Note: The form_id in this endpoint is used solely for constructing the S3 path (/forms/{form_id}/...). We intentionally do not link the instruction to the Form record or validate the Form's existence at this stage.

Validation steps

See new tests

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

Successfully merging this pull request may close these issues.

Create new endpoint for form instructions documents (handles s3 + DB)

2 participants