asapi_farm_put: The Farms PUT Function

Description Usage Arguments

View source: R/api_connector.R

Description

This function allows you to PUT farm new information with the API and retrieve your API KEY

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
asapi_farm_put(
  client,
  farm,
  new_type = "NULL",
  new_region = "NULL",
  new_commune = "NULL",
  new_geojson = "NULL",
  email_admin,
  api_key,
  url = "https://api.agrospace.cl"
)

Arguments

client

Client name

farm

Farm name to query

new_type

New farm type. If the value is 'NULL' it does not change.

new_region

New farm region. If the value is 'NULL' it does not change.

new_commune

New farm Commune. If the value is 'NULL' it does not change.

new_geojson

New farm geojson. If the value is 'NULL' it does not change.

email_admin

Email of the user who is editing. It must be 'admin'.

api_key

Api Key obtain from /auth

url

URL for dev purpose


agrospace/ASAPI documentation built on Nov. 26, 2021, 3:36 a.m.