curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Block not found" }
Blocks
Delete block
Soft-delete a block + cascade soft-delete to its plants.
DELETE
/
api
/
v1
/
farms
/
{id}
/
fields
/
{fieldId}
/
blocks
/
{blockId}
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Block not found" }
DELETE https://www.wiseyield.co/api/v1/farms/{id}/fields/{fieldId}/blocks/{blockId}
Authentication
Requires a key with thefields:write scope.
Path parameters
string
required
Farm UUID.
string
required
Field UUID.
string
required
Block UUID.
Response
Returns204 No Content on success. Cascade: any active block_plants under this block are also soft-deleted with the same deletedAt timestamp.
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888.../blocks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)
{ "error": "Not found", "code": "NOT_FOUND", "message": "Block 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, or block doesn’t exist, is already soft-deleted, or belongs to another user |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |