Gemini Docs
  • Gemini Overview
  • 🎯Use cases & Benefits
  • 🚴‍♂️Getting Started
  • Backend Module
    • Overview
    • Getting Started
      • REST API - Micronaut MongoDB
    • Rest API
      • Basic CRUD
        • POST /data/{entity}
        • GET /data/{entity}/{id}
        • PUT /data/{entity}/{id}
        • PATCH /data/{entity}/{id}
        • DELETE /data/{entity}/{id}
      • Getting Data
        • GET All Data
        • Pagination
        • Filters
        • Sorting
      • Rest Configuration
        • Big Entities
        • Reference
    • The Schema (DDD)
      • Entities
      • Fields
        • String
        • Number
        • Boolean
        • Date & Time
        • Enum & Select
        • Object
        • Array
        • Dictionary
    • Data Drivers
Powered by GitBook
On this page
  • Request
  • Endpoint
  • Body - same as POST
  • Responses - same as POST
  1. Backend Module
  2. Rest API
  3. Basic CRUD

PUT /data/{entity}/{id}

FULL MODE entity record update

PreviousGET /data/{entity}/{id}NextPATCH /data/{entity}/{id}

Last updated 3 years ago

This API can be used for updating a record with FULL mode. Full means that everything that the entity record is totally replaced with the data coming from the request body. So, for example if you want to erase a field, just not pass it in the body.

For updating only some fields you can use the PATCH API.

Request

Endpoint

PUT <base_url>/data/{entity}/{id}

{entity} is the Entity name according to the name provided in the schema

{id} is the record identifier (the logical key for the record)

Body - same as POST
Responses - same as POST