Collection Chemicals

Integrate chemicals across collection groups

POST
/chemical/collection/chemicals/integrate

Returns chemicals from the union of collection ids within each group and the intersection across groups. Supports up to three groups and five collection ids per group. Empty groups are ignored; zero effective groups and no matches return an empty array.

Request Body

application/json

Collection groups. Collection ids are unioned within each group and the resulting groups are intersected.

Collection groups to combine using union within each group and intersection across groups

collections?array<array<>>

Up to three collection groups, with at most five collection_id values per group. Empty groups are ignored.

Response Body

application/json

application/json

curl -X POST "https://example.com/chemical/collection/chemicals/integrate" \  -H "Content-Type: application/json" \  -d '{    "collections": [      [        1,        2,        5      ],      [        6,        7,        2      ],      [        1,        5,        9,        10      ]    ]  }'
[  {    "chemicalId": 0,    "pubchemCid": 0,    "cichemId": "string",    "dtxsid": "string",    "primaryName": "string",    "casrn": "string",    "systematicName": "string",    "inchikey": "string",    "smiles": "string",    "qcLevelName": "string",    "qcLevelDescription": "string",    "exportDate": "2019-08-24",    "dataVersion": "string"  }]