Skip to main content

LabTestCreateRefusedResultsResponse

Returned when the Test Program set the tests of a submitted creation and the request has results for tests it did not pick (refusedResults), or any Test Property or Test Condition it picked has no result in the request (missingResults). One response lists both. The lab test is not created.

codeinteger
Example: 400
statusinteger
Example: 400
testPropertiesstring[]
Example: ["Cannot create the lab test: the request has results for tests that the Test Program of the Lab Test Form did not pick."]
refusedResults object[]
  • Array [
  • testPropertyIdstringrequired
    Example: TP-679
    fieldstring

    The refused Test Property result, for a result of a Test Property the Test Program did not pick

    Possible values: [result, reviewResult]

    itemIdstring

    For a condition result, the product it belongs to. materialId or styleId instead, by the Lab Test Form's product type

    Example: KANE-ITEM-1
    materialIdstring
    styleIdstring
    testConditionIdstring
    Example: C-03
    testConditionNamestring

    For a condition result sent without an ID

  • ]
  • missingResults object[]

    Test Properties, and Test Conditions for an item / material / style, that the Test Program picked and that have no result in the request

  • Array [
  • testPropertyIdstringrequired
    Example: PHYS-SPR-01
    fieldstringrequired

    Possible values: [result]

    itemIdstring

    For a Test Condition, the product it belongs to. materialId or styleId instead, by the Lab Test Form's product type

    Example: ITEM-1
    materialIdstring
    styleIdstring
    testConditionIdstring

    For a Test Condition without a result

    Example: C-01
  • ]
  • LabTestCreateRefusedResultsResponse
    {
    "code": 400,
    "status": 400,
    "testProperties": [
    "Cannot create the lab test: the request has results for tests that the Test Program of the Lab Test Form did not pick."
    ],
    "refusedResults": [
    {
    "testPropertyId": "TP-679",
    "field": "result",
    "itemId": "KANE-ITEM-1",
    "materialId": "string",
    "styleId": "string",
    "testConditionId": "C-03",
    "testConditionName": "string"
    }
    ],
    "missingResults": [
    {
    "testPropertyId": "PHYS-SPR-01",
    "field": "result",
    "itemId": "ITEM-1",
    "materialId": "string",
    "styleId": "string",
    "testConditionId": "C-01"
    }
    ]
    }