curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa.../plants/ffffffff...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Plant not found" }
Plants
Delete plant
Soft-delete a plant record.
DELETE
/
api
/
v1
/
farms
/
{id}
/
fields
/
{fieldId}
/
blocks
/
{blockId}
/
plants
/
{plantId}
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa.../plants/ffffffff...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Plant not found" }
DELETE /api/v1/farms/{id}/fields/{fieldId}/blocks/{blockId}/plants/{plantId}
Authentication
Requires a key with thefields:write scope.
Path parameters
string
required
Farm UUID.
string
required
Field UUID.
string
required
Block UUID.
string
required
Plant UUID.
Response
Returns204 No Content on success.
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa.../plants/ffffffff...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Plant not found" }
Errors
| Status | When |
|---|---|
400 INVALID_ID | Any path UUID is malformed |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks fields:write scope |
404 NOT_FOUND | Farm, field, block, or plant doesn’t exist, is already soft-deleted, or belongs to another user |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |