The following assumes subfield geometries (eg as kml files) have been already uploaded to an IBM COS bucket called eg agrotech-prod-agrocustomername-onboarding.
{
"name": "Field Name",
"subFields": [
{
"name": "Subfield-Name",
"geo": {
"type": "kml",
"url": "s3:///agrotech-prod-agrocustomername-onboarding/subfield-file-name.kml"
}
}
]
}
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -H "X-Profile-Id: <PROFILE-ID>" -H 'Authorization: Bearer <ADMIN JWT>' -d @field.json -i 'https://foundation.agtech.ibm.com/v2/field'