- Introduction
- Changelog Release
- Local Development
- Child
- daily-note-controller
- fetus-image-controller
- file-controller
- migration-controller
- milestone-controller
- mood-tracker-controller
- mother-weight-controller
- pregnancy-controller
create / update mother's weight data
POST
/mother-weight/save
mother-weight-controller
Request
Body Params application/json
active
boolean
optional
Example:
false
id
integer <int64>
optional
pregnancyId
integer <int64>
optional
Example:
4
weight
number <double>
optional
Example:
44.4
weightingDate
object
optional
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