Get a teardown

distru-get-teardownRead

Gets one teardown: the work that turns flowering plants into harvests, with plant counts and weights.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
idstringYesThe ID of the teardown to retrieve. Resolve via distru-search-teardowns.
includeTeardownOutputsbooleanNoAdds the outputs, one per license and strain, each with its harvest, strain and license (harvest detail via distru-get-harvest). quantity is the wet weight in the harvest's unit type. submittedForReviewAt is when it was submitted for review; null until then.
includeTeardownInputsbooleanNoAdds every input, one per plant, with its Metrc tag (plant.metrcLabel) and location. Can be thousands of rows. quantity is the plant wet weight in unitType. Plant detail via distru-get-plant.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
teardownobjectCan be null
teardown.idstringAlways
teardown.namestringAlways
teardown.statusenum
COMPLETEDPENDINGPREPARING
Always
teardown.plantCountnumberAlways
teardown.weighedPlantCountnumberAlways
teardown.isManicurebooleanAlways
teardown.insertedAtstringCan be null
teardown.updatedAtstringCan be null
teardown.submittedForReviewAtstringCan be null
teardown.grownForobjectNull or absent
teardown.grownFor.idstringAlways
teardown.grownFor.namestringNull or absent
teardown.unitTypeobjectCan be null
teardown.unitType.idstringAlways
teardown.unitType.namestringAlways
teardown.teardownOutputsobject[]Can be absent
teardown.teardownOutputs[].statusenum
COMPLETEDPENDINGPREPARING
Always
teardown.teardownOutputs[].submittedForReviewAtstringCan be null
teardown.teardownOutputs[].completedAtstringCan be null
teardown.teardownOutputs[].quantitystringCan be null
teardown.teardownOutputs[].metrcQuantitystringCan be null
teardown.teardownOutputs[].harvestobjectCan be null
teardown.teardownOutputs[].harvest.idstringAlways
teardown.teardownOutputs[].harvest.namestringAlways
teardown.teardownOutputs[].harvest.metrcStrainobjectAlways
teardown.teardownOutputs[].harvest.metrcStrain.namestringAlways
teardown.teardownOutputs[].harvest.licenseobjectAlways
teardown.teardownOutputs[].harvest.license.idstringAlways
teardown.teardownOutputs[].harvest.license.licenseNumberstringAlways
teardown.teardownInputsobject[]Can be absent
teardown.teardownInputs[].quantitystringCan be null
teardown.teardownInputs[].metrcQuantitystringCan be null
teardown.teardownInputs[].plantobjectCan be null
teardown.teardownInputs[].plant.idstringAlways
teardown.teardownInputs[].plant.metrcLabelstringCan be null
teardown.teardownInputs[].locationobjectCan be null
teardown.teardownInputs[].location.idstringAlways
teardown.teardownInputs[].location.namestringAlways
teardown.teardownInputs[].unitTypeobjectCan be null
teardown.teardownInputs[].unitType.idstringAlways
teardown.teardownInputs[].unitType.namestringAlways
What the AI reads

Gets a single teardown — cultivation work that turns flowering plants into harvests — by ID: name, status, plant counts, the company it was grown for, unit type, submittedForReviewAt. weighedPlantCount is the plants with a weight recorded. isManicure is a partial harvest: plants keep growing and can be manicured again. Outputs and inputs are omitted unless includeTeardownOutputs or includeTeardownInputs is set. Hides removed teardowns. For the plants use distru-search-plants; for the harvests use distru-get-harvest. Do not use to browse or search teardowns; use distru-search-teardowns. Returns null if no teardown matches the ID.