Environmental-Intelligence-Suite

Admins: how to create fields for a user

The following assumes subfield geometries (eg as kml files) have been already uploaded to an IBM COS bucket called eg agrotech-prod-agrocustomername-onboarding.

  1. Get a valid auth token: Generate an API Authorization JWT
  2. Create a JSON payload similar to this in a file called eg field.json:
{
  "name": "Field Name",
  "subFields": [
    {
      "name": "Subfield-Name",
      "geo": {
        "type": "kml",
          "url": "s3:///agrotech-prod-agrocustomername-onboarding/subfield-file-name.kml"
      }
    }
    ]
 }
  1. Run the following field API: