Skip to main content

AddTestsByIdsArguments

At least one of packages and properties must list something, every package must list at least one property, and every property at least one condition. Otherwise 400 (graph.schema, reason: empty_selection).

Only what is listed is added: naming a package does not add the rest of the package.

An id that is not in the catalog is saved with the warning add_tests.not_found. When the program runs, a package, property or condition that is missing, disabled or not visible is skipped.

packages object[]

Properties added as part of a test package. Each property must belong to that package.

  • Array [
  • idstringrequired

    Test Package ID.

    Possible values: non-empty

    Example: CHM-EU-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    properties object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Property ID.

    Possible values: non-empty

    Example: CHM-PB-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    conditions object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Condition ID, on the property's latest version.

    Possible values: non-empty

    Example: L-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    requiredbooleannullable

    Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.

    lockedboolean

    true: the condition cannot be removed from a lab test the program filled.

    Default value: false
  • ]
  • ]
  • ]
  • properties object[]

    Properties added on their own, outside any package.

  • Array [
  • idstringrequired

    Test Property ID.

    Possible values: non-empty

    Example: CHM-PB-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    conditions object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Condition ID, on the property's latest version.

    Possible values: non-empty

    Example: L-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    requiredbooleannullable

    Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.

    lockedboolean

    true: the condition cannot be removed from a lab test the program filled.

    Default value: false
  • ]
  • ]
  • AddTestsByIdsArguments
    {
    "packages": [
    {
    "id": "CHM-EU-01",
    "name": "string",
    "properties": [
    {
    "id": "CHM-PB-01",
    "name": "string",
    "conditions": [
    {
    "id": "L-01",
    "name": "string",
    "required": true,
    "locked": false
    }
    ]
    }
    ]
    }
    ],
    "properties": [
    {
    "id": "CHM-PB-01",
    "name": "string",
    "conditions": [
    {
    "id": "L-01",
    "name": "string",
    "required": true,
    "locked": false
    }
    ]
    }
    ]
    }