locations

Update Location

Edit a location directory entry. Pass expected_version to reject a stale edit. Directory scopes use read:farms/write:farms; minimum farm role READER for reads and EDITOR for writes.

put/v1/farm/{farm_id}/locations/{location_id}

Request

  • Base URL: https://api.ranch.bot
  • URL: https://api.ranch.bot/v1/farm/{farm_id}/locations/{location_id}
  • Auth: HTTP bearer

Path parameters

farm_idstring uuid required
location_idstring uuid required

Request body

namestring
parent_idstring nullable
category'FARM' | 'FIELD' | 'PEN' | 'BARN' | 'VET' | 'RODEO' | 'ABATTOIR' | 'AUCTION' | 'OTHER' nullable
context'OPERATED' | 'LEASED' | 'EXTERNAL' nullable
addressstring
legal_land_descriptionstring
countrystring
province_statestring
expected_versioninteger

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.