From 6f96e0087b5620707769aea967ffbb8b92f0022e Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Mon, 6 Apr 2020 14:50:38 +0000 Subject: [PATCH] Update page 'Create Cropfield' --- Create-Cropfield.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Create-Cropfield.md b/Create-Cropfield.md index 0fe022b..7481cb4 100644 --- a/Create-Cropfield.md +++ b/Create-Cropfield.md @@ -67,7 +67,7 @@ Response 404 Parent Item not found * Create a 'vnd.farmmaps.itemtype.cropfield' item as a child of the 'FOLDER' item. Needs to contain dataDate and dataEndDate to specify cropfield season. dataDate needs to be before dataEndDate and cannot be the same day. -The data field needs to contain the startDate and endDate keys with the same values as dataDate(startDate) and dataEndDate(endDate) + > Request ```javascript POST /api/v1/items @@ -77,7 +77,7 @@ POST /api/v1/items "name": "cropfield for VRA", "dataDate": "2019-1-18T10:16:21.455Z", "dataEndDate": "2019-12-18T10:16:21.455Z", - "data": {"startDate": "2019-1-18T10:16:21.455Z", "endDate": "2019-12-18T10:16:21.455Z"}, + "data": {}, "geometry": {"type":"Polygon","coordinates":[[[6.09942873984307,53.070025028087],[6.09992507404607,53.0705617890585],[6.10036959220086,53.0710679529031],[6.10065149010421,53.0714062774307],[6.10087493644271,53.0716712354474],[6.10091082982487,53.0716936039203],[6.10165087441291,53.0712041549161],[6.10204994718318,53.0709349338005],[6.10263143118855,53.0705789370018],[6.10311578125011,53.0702657538294],[6.10331686552072,53.0701314102389],[6.103326530575,53.070119463569],[6.10309137950343,53.0699829669055],[6.10184241586523,53.0692902201371],[6.10168497998891,53.0691984306747],[6.10092987659869,53.0694894453514],[6.09942873984307,53.070025028087]]]} } ```