Skip to main content
POST
/
v1
/
patients
Create or update a patient profile
curl --request POST \
  --url https://cds.marmar.life/v1/patients \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Tenant-Code: <api-key>' \
  --data '
{
  "patientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalId": null,
  "demographics": null,
  "reproductiveStatus": null,
  "hormonalTherapies": null
}
'
{
  "patientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created": true
}

Authorizations

X-Tenant-Code
string
header
required

Tenant slug returned during registration.

X-API-Key
string
header
required

Tenant API key. The server also accepts the lowercase x-api-key header for convenience.

Body

application/json
  • Option 1
  • Option 2
patientId
string<uuid>
required
externalId
string | null

Optional external identifier supplied by the tenant.

Example:

null

demographics
object
Example:

null

reproductiveStatus
enum<string> | null
Available options:
REGULAR_CYCLE,
PREGNANT,
BREASTFEEDING,
PERIMENOPAUSE,
POSTMENOPAUSAL,
PLANNING_PREGNANCY,
UNKNOWN
Example:

null

hormonalTherapies
object[] | null
Example:

null

Response

Patient updated

patientId
string<uuid>
required
created
boolean
required