Collections
Search collection by collection id
Returns one collection by the public collection identifier stored in collection_id. Projection controls response shape: full (all columns) or name (id and name).
Path Parameters
id*integer
Public collection identifier backed by the collection_id column
Format
int64Query Parameters
projection?string
Response projection. Allowed values: full, name.
Default
"full"Response Body
application/json
application/json
curl -X GET "https://example.com/chemical/collections/search/by-id/101?projection=full"{ "id": 0, "name": "string"}Search collection by collection id using request body POST
Returns one collection by the public collection identifier stored in collection_id from the request body. Projection supports full and name.
Search collection by name using request body POST
Returns one collection by name from request body. Projection supports full and name.