Core Service
HomeCore Service
Playground
  • Child
  • Daily Notes
  • Fetus Image
  • File
  • Migration
  • Milestone
  • Mood Tracker
  • Mother Weight
  • Pregnancy
Changelog Release
HomeCore Service
Playground
  • Child
  • Daily Notes
  • Fetus Image
  • File
  • Migration
  • Milestone
  • Mood Tracker
  • Mother Weight
  • Pregnancy
Changelog Release
  1. mother-weight-controller
  • Introduction
  • Changelog Release
  • Local Development
  • Child
    • getChildList
      GET
    • updateProfile
      POST
    • createFirstBaby
      POST
    • deleteBaby
      DELETE
  • daily-note-controller
    • get list of daily notes
      POST
    • delete daily note by id
      DELETE
    • create new daily note
      POST
    • update existing daily note
      POST
  • fetus-image-controller
    • getFetusImageByWeekV2
      GET
    • getFetusImageByWeek
      GET
  • file-controller
    • streamPrivateData
      GET
  • migration-controller
    • migrateChild
      GET
    • migratePregnancy
      GET
    • migratePregnancyCheckup
      GET
    • migratePregnancyByEmail
      GET
    • migrateUsgScan
      GET
  • milestone-controller
    • get user's list of baby milestones by baby id and month
    • update user's list of baby monthly milestones
    • get user's list of pregnancy milestones by week
    • update user's list of pregnancy weekly milestones
  • mood-tracker-controller
    • get mood history by pregnancy id, start date, and end date
    • get monthly mood history by pregnancy id and month
    • create / update mood data
    • get weekly mood history by pregnancy id and week
    • delete mood data by id
  • mother-weight-controller
    • get mother's weight by pregnancy id, mode, start date, and end date
      GET
    • get mother's weight data by pregnancy id and date
      GET
    • get mother's weight monthly report by pregnancy id
      GET
    • create / update mother's weight data
      POST
    • delete mother's weight by id
      DELETE
  • pregnancy-controller
    • updateDueDate
    • getPregnancyDetail
    • createFirstPregnancy
    • getPregnancyHistory
    • updateStatus
    • createFirstPregnancy
    • deletePregnancy
  1. mother-weight-controller

create / update mother's weight data

POST
/mother-weight/save
mother-weight-controller

Request

Body Params application/json
active
boolean 
optional
set mother's weight data to be active / inactive
Example:
false
id
integer <int64>
optional
mood id
pregnancyId
integer <int64>
optional
pregnancy id of the mother's weight created for
Example:
4
weight
number <double>
optional
mother's weight in kg
Example:
44.4
weightingDate
object 
optional
date mother's weight recorded, using ISO Datetime yyyy-MM-dd'T'HH:mm:ss.SSSXXX format
Example:
2000-10-31T01:30:00.000+07:00
Example
{
    "active": false,
    "id": 0,
    "pregnancyId": 4,
    "weight": 44.4,
    "weightingDate": "2000-10-31T01:30:00.000+07:00"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/mother-weight/save' \
--header 'Content-Type: application/json' \
--data-raw '{
    "active": false,
    "id": 0,
    "pregnancyId": 4,
    "weight": 44.4,
    "weightingDate": "2000-10-31T01:30:00.000+07:00"
}'

Responses

🟢200OK
application/json
Body
data
object (MotherWeightResponse) 
optional
active
boolean 
optional
id
integer <int64>
optional
week
integer <int32>
optional
weight
number <double>
optional
weightingDate
string <date-time>
optional
Example
{
    "data": {
        "active": true,
        "id": 0,
        "week": 0,
        "weight": 0,
        "weightingDate": "2019-08-24T14:15:22Z"
    }
}
Modified at 2023-01-24 09:44:30
Previous
get mother's weight monthly report by pregnancy id
Next
delete mother's weight by id
Built with