Skip to main content
POST
/
subjects
Create subject
curl --request POST \
  --url 'https://partner-api.ochy-prod.com/subjects?apiKey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "runner@example.com",
  "name": "Jane Smith",
  "height": 1.72,
  "weight": 62
}
'
{
  "subject_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2025-03-20T15:30:00Z"
}

Authorizations

apiKey
string
query
required

Your API key, passed as a query parameter on every request.

Body

application/json

All fields are optional. The subject_id is generated by the server. Height is in meters, weight is in kilograms.

email
string
Example:

"runner@example.com"

name
string
Example:

"Jane Smith"

height
number

Subject height in meters.

Example:

1.72

weight
number

Subject weight in kilograms.

Example:

62

Response

Subject created.

subject_id
string

Server-generated unique identifier for the new subject.

Example:

"550e8400-e29b-41d4-a716-446655440000"

created_at
string<date-time>
Example:

"2025-03-20T15:30:00Z"