List sample production methods

GET /v0/sampleproductionmethods

Return every sample production method, ordered for display. A production method describes how the sample was grown or made (for example Indoor for plant material or CO2 for an extract) and belongs to a single sample category.

Try it

Log in to send test requests to this endpoint straight from the docs.

Responses

200 Success
sample_production_methods array of objects
Show 4 child attributes Hide 4 child attributes
id integer

Unique ID for Sample Production Method

name string

Sample Production Method Name

category_id integer

Sample Category ID

category_name string

Sample Category Name

400 Bad request

The request was malformed or failed validation. Validation failures include per-field messages in error_details.

Possible error_code values: invalid_request, request_too_old.

401 Unauthorized

Authentication failed.

Possible error_code values: missing_api_key, invalid_api_key, invalid_credentials_type, api_access_restricted, api_access_denied, missing_signature, missing_timestamp, invalid_timestamp, invalid_signature.

403 Permission denied

The API key is valid but does not have permission for this endpoint (for example, a client key calling a labs endpoint).

Possible error_code values: permission_denied.

How to sign requests
# X-ConfidentLims-Signature: see the Request Signing guide - https://api.confidentcannabis.com/v0/docs/request-signing.md
curl -X GET 'https://api.confidentcannabis.com/v0/sampleproductionmethods' \
  -H 'X-ConfidentLims-APIKey: YOUR_API_KEY' \
  -H 'X-ConfidentLims-Timestamp: UNIX_TIMESTAMP' \
  -H 'X-ConfidentLims-Signature: REQUEST_SIGNATURE'
Response · 200
{
  "success": true,
  "sample_production_methods": [
    {
      "id": 1,
      "name": "Indoor",
      "category_id": 1,
      "category_name": "Plant"
    },
    {
      "id": 5,
      "name": "CO2",
      "category_id": 2,
      "category_name": "Concentrates & Extracts"
    }
  ]
}