Skip to main content
DELETE
/
api
/
v1
/
crops
/
{id}
curl -X DELETE 'https://www.wiseyield.co/api/v1/crops/33333333-4444-5555-6666-777777777777' \
  -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/crops/{id}

Authentication

Requires a key with the crops:write scope.

Path parameters

id
string
required
Crop UUID.

Response

Returns 204 No Content on success. The crop’s deletedAt is set to the current timestamp; subsequent reads return 404 NOT_FOUND. See Soft deletes for the full semantics.
curl -X DELETE 'https://www.wiseyield.co/api/v1/crops/33333333-4444-5555-6666-777777777777' \
  -H "Authorization: Bearer $WISEYIELD_API_KEY"
(no body)

Errors

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