post traits Endpoint

Sends genomic testing results to PULSE.

POST https://genetics.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/genomics/traits

Parameters (required)

In addition to the standard Authorization and API Key header parameters, the following are required: 

ContentTypestringREQUIRED

Use application/json

Request bodyREQUIRED

Format required for the POST request. See the details below in the Request Schema.

Request Schema

Sample Request (cURL)
curl -X POST 
'https://genetics.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/genomics/traits'  \
-H 'Authorization: bearer {authorization token}'   \
-H 'X-API-Key: {API key}'  \
-H 'Content-Type: application/json'  \ 

--data-raw '{    
    "member": [
	{
            "officialId": "HO987654321987654",
            "barCode": "Z00000001",
            "date": "2023-01-01",
            "traits": {
                "AY_PCT": 30,
                "BDC": 80,
                "BDE": 0.01,
                "BH14": 0,
                "BLEND_CODE": "Purebred",
                "BREED": "HO",
                "BS_PCT": 50,  
                "CA$": 50,
                "CCR": -0.8,			
                "CHONDRO": "C",
                "CM": 674,
                "CPI": 2687,
                "DAB": 0.6,
                "DAM17": "HO123003209000000",
                "DCE": 1.8,
                "DFM": -0.4,
                "DPR": -1.5,
                "DSB": 3.7,
                "EFC": 0.8,
                "FAT": 75,
                "FATPCT": 0.19,
                "FE": 250,
                "FLS": 0.13,
                "FM": 552,
                "FS": -186
                "FTA": -0.34,
                "FTI": 70,
                "FTP": 0.87,
                "FUA": 0.72,
                "GEN_FUT_INB": 11,
                "GEN_INB": 16,
                "GL": -0.1,
                "GM": 555,
                "GU_PCT": 30,
                "HBR": 0,
                "HCD": 0,
                "HCR": -0.1,
                "HDR": 0,
                "HH0": 0,
                "HH1": 0,
                "HH2": 0,
                "HH3": 0,
                "HH4": 0,
                "HH5": 0,
                "HH6": 0,
                "HHB": 0,
                "HHC": 0,
                "HHD": 0,
                "HHM": 0,
                "HHP": 0,
                "HHR": 0,
                "HLV": 1,
                "HMW": 0,
                "HO_PCT": 40,
                "JE_PCT": 40,
                "JPIClosed Jersey Performance Index": 2687,
                "JUIClosed Jersey Udder Index": 2500,
                "KCNI": "AB*",
                "KET": 1.5,
                "LIV": 2.2,
                "MAS": 0.8,
                "MET": 0.7,
                "MFV": 0,
                "MILK": 510,
                "NM": 657,
                "PED_INB": 11.6,
                "PL": 4.3,
                "PRO": 36,
                "PROPCT": 0.07,
                "PTAT": 0.43,
                "RLR": 0.2,
                "RLS": -0.05,
                "RPA": -0.15,
                "RPL": -0.1,
                "RTP": 0.96,
                "RUH": 0.48,
                "RUW": 0.89,
                "SCE": 1.7,
                "SCS": 2.74,
                "SIRE17": "HO123003100000000",
                "SPINALDYS": "C",
                "SSB": 5.1,
                "STA": -0.28,
                "STR": 0.4,
                "TLG": 0.34,
                "TPI": 2687,
                "TRW": 0.03,
                "UCL": 1.25,
                "UDC": 90,
                "UDP": 0.21
            }
        }
  ]
}'

Response

A successful response is 200 OK or "unknownTraits": [], which indicates that the system recognized all the traits in the request. See API Errors and HTTP Status Code Details for other possible responses.