POST
/
api
/
v1
/
products
/
formulas
curl --request POST \
  --url https://api.byblend.com/api/v1/products/formulas \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Test Formula",
  "description": "Test formula for automated testing",
  "allergen_snomeds": [
    "32675",
    "70813002"
  ],
  "allergen_scdgs": [
    "1165648",
    "1160157"
  ],
  "medication_scdgs": [
    "1156982"
  ]
}'
{
  "name": "Test Formula",
  "description": "Test formula for automated testing",
  "allergen_snomeds": [
    "32675",
    "70813002"
  ],
  "allergen_scdgs": [
    "1165648",
    "1160157"
  ],
  "medication_scdgs": [
    "1156982"
  ],
  "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
  "created_at": "2025-03-15T12:00:00Z",
  "updated_at": "2025-03-15T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201 - application/json

Formula created successfully

The response is of type object.