4.68. ETL - Create and update addresses
| Id | 4.68. |
| Description |
As an ETL user,
I must be able to create and update address on the NRVC address database,
So that I can populate new addresses or correct / approve existing ones. |
| Priority | High |
| Actors | ETL |
| API Calls |
POST /addresses PUT /addresses/<address-id> PATCH /addresses/<address-id> |
| Linked Processes | |
| Status | Implemented |
Preconditions
- The User must be authenticated and have the ETL role.
- The user must have an address to create or update
Postconditions
- The System returns the updated address instance.
Main flow
- The ETL user triggers a creation (POST) or update of an address (PUT / PATCH).
- The system returns the added / updated address.
Exceptions
[400 Bad Request] Invalid input:
If mandatory fields are missing or invalid, the system returns an error message.
[404 Not Found] Address not found:
Error returned if the Server could not find any address for a given address id (update use case).
[500 Internal Server Error] System Error
If the system fails to save changes due to an internal error, it displays an appropriate message and logs the error for further investigation.
No comments to display
No comments to display