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

PATCH /data/{entity}/{id}

PARTIAL MODE entity record update

PreviousPUT /data/{entity}/{id}NextDELETE /data/{entity}/{id}

Last updated 3 years ago

This API can be used for updating a record with the PARTIAL mode. Partial means that only the fields in the data request body will be updated.

This API can be very useful when you have entities with a lot of fields and you want only to touch only some of them.

Request

Endpoint

PATCH <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