- 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
createFirstPregnancy
POST
/pregnancy/first-register
pregnancy-controller
Request
Body Params application/json
babyInfo
object (NameGenderRequest)
optional
gender
enum<string>
optional
Allowed values:
FEMALEMALEUNKNOWN
name
string
optional
dueDate
string <date-time>
optional
lastDateofPeriod
string <date-time>
optional
Example
{
"babyInfo": {
"gender": "FEMALE",
"name": "string"
},
"dueDate": "2019-08-24T14:15:22Z",
"lastDateofPeriod": "2019-08-24T14:15:22Z"
}
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 '/pregnancy/first-register' \
--header 'Content-Type: application/json' \
--data-raw '{
"babyInfo": {
"gender": "FEMALE",
"name": "string"
},
"dueDate": "2019-08-24T14:15:22Z",
"lastDateofPeriod": "2019-08-24T14:15:22Z"
}'
Responses
🟢200OK
application/json
Body
data
object (CreateFirstPregnancyRequest)
optional
babyInfo
object (NameGenderRequest)
optional
dueDate
string <date-time>
optional
lastDateofPeriod
string <date-time>
optional
Example
{
"data": {
"babyInfo": {
"gender": "FEMALE",
"name": "string"
},
"dueDate": "2019-08-24T14:15:22Z",
"lastDateofPeriod": "2019-08-24T14:15:22Z"
}
}
Modified at 2023-01-24 09:44:30