@PUT — Aquilia Documentation
Comprehensive guide and documentation for @PUT in the Aquilia framework. View API reference, examples, and implementation patterns.
Back to Decorators @PUT The @PUT decorator handles HTTP PUT requests for full resource replacement. It enforces idempotency, meaning multiple identical requests should have the same effect as a single one. Basic Usage Replacement Semantics Unlike @PATCH, @PUT expects a complete representation of the resource. Accessing ctx.contract or using request_contract will typically enforce that all required fields are present. Validation Behavior When using request_contract with PUT, partial updates (missing required fields) will strictly fail validation. Use @PATCH if you want to allow partial data. Previous: @POST Next: @PATCH )
Go to Homepage