Skip to main content
POST
/
api
/
v1
/
strains
cURL
curl --request POST \
  --url https://api.drgreennft.com/api/v1/api/v1/strains \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-signature: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "locations": [
    "<string>"
  ],
  "isAvailable": true,
  "isActive": true,
  "thc": 123,
  "cbg": 123,
  "cbd": 123,
  "batchNumber": "<string>",
  "planetDetailIds": [
    "<string>"
  ],
  "wholeSalePrice": 123,
  "retailPrice": 123,
  "stockQuantity": 123,
  "discount": 123,
  "expiryDate": "2023-11-07T05:31:56Z",
  "type": "<string>",
  "strainId": "<string>",
  "flavour": "<string>",
  "feelings": "<string>",
  "effects": "<string>",
  "helpsWith": "<string>",
  "popularity": 123,
  "imageUrl": "<string>"
}
'
{
  "statusCode": 400,
  "message": "Validation failed",
  "data": [
    "email must be a valid email",
    "phoneNumber should not be empty"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.dr.green/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-auth-apikey
string
header
required

The holder's Base64-encoded PEM SPKI public key. Issued via POST /keys in the DAPP UI. See docs/02-authentication.md.

x-auth-signature
string
header
required

Base64-encoded ECDSA-SHA256 signature over the canonical payload. Curve: secp256k1. Canonical payload rules depend on HTTP method — POST/PATCH/PUT sign the JSON body; GET/DELETE with query sign urlencode(query); GET/DELETE with no query sign '{}'. See docs/02-authentication.md for the full spec.

Body

application/json
name
string
required
description
string
required
locations
string[]
required
isAvailable
boolean
required
isActive
boolean
required
thc
number
required
cbg
number
required
cbd
number
required
batchNumber
string
required
planetDetailIds
string[]
required
wholeSalePrice
number
required
retailPrice
number
required
stockQuantity
number
required
discount
number
required
expiryDate
string<date-time>
required
type
string
strainId
string
flavour
string
feelings
string
effects
string
helpsWith
string
popularity
number
imageUrl
string

Response