Skip to main content
DELETE
/
api
/
v1
/
farms
/
{id}
/
fields
/
{fieldId}
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888...' \
  -H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)

Documentation Index

Fetch the complete documentation index at: https://docs.wiseyield.co/llms.txt

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

DELETE https://www.wiseyield.co/api/v1/farms/{id}/fields/{fieldId}

Authentication

Requires a key with the fields:write scope.

Path parameters

id
string
required
Farm UUID.
fieldId
string
required
Field UUID.

Response

Returns 204 No Content on success.
Fields with associated crops have an ON DELETE RESTRICT foreign key (per Land hierarchy — field is the unit of infrastructure). Soft-deleting a field that still has active crops succeeds at the application layer but leaves orphan-reachable crops; soft-delete the crops first when possible.
curl -X DELETE 'https://www.wiseyield.co/api/v1/farms/11111111.../fields/88888888...' \
  -H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)

Errors

StatusWhen
400 INVALID_ID{id} or {fieldId} is not a valid UUID
401Missing, malformed, expired, or revoked API key
403 INSUFFICIENT_SCOPEKey lacks fields:write scope
404 NOT_FOUNDFarm or field doesn’t exist, is already soft-deleted, or belongs to another user
429 RATE_LIMIT_EXCEEDEDPer-user rate limit reached
5xxServer error