Create a Work Plan
POST
- Work: access level 2
- Locations: access level 1
- Equipment: access level 1
- Organization Management: access level 1
OAuth Scope Required: work2
Request URI
POST https://sandboxapi.deere.com/platform/organizations/{orgId}/workPlans
Accept: application/vnd.deere.axiom.v3+json
Parameters
Parameter | Type | Description & Example | In |
---|---|---|---|
orgId Required | string | Organization Example: 1234 | path |
Status Codes
Code | Message | Description |
---|---|---|
201 | Created | Work Plan successfully created |
400 | Bad Request | Request is rejected due to invalid request body. Response body will contain more details on reason of failure |
403 | Forbidden | Authenticated user does not have required permission in target organization to create work plan |
409 | Conflict | Erid provided in request body already exists in target organization |
Response Details
Field | Type | Description & Example |
---|---|---|
year | integer | --- Example: 2021 |
Sample Request [JSON]: Sample JSON
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId1}", "inputType": "VARIETY" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 15000, "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId2}", "inputType": "VARIETY" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId1}", "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProducts": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] }, { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/chemicals/{ChemicalId1}", "inputType": "CHEMICAL" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 60, "unit": "l1ha-1", "vrDomainId": "vrAppRateVolumeTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fertilizers/{FertilizerId1}", "inputType": "FERTILIZER" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId2}", "unit": "kg1ha-1", "vrDomainId": "vrAppRateMassTarget" } } } ] } ], "workPlanAssignments": [ { "machineUri": "https://api.deere.com/platform/machines/{MachineId1}", "equipmentMachineUri": "https://equipmentapi.deere.com/isg/equipment/{EquipmentId1}", "equipmentImplementUris": [ "https://equipmentapi.deere.com/isg/equipment/{EquipmentId1}", "https://equipmentapi.deere.com/isg/equipment/{EquipmentId1}" ], "implementUris": [ "https://api.deere.com/platform/implements/{ImplementId1}", "https://api.deere.com/platform/implements/{ImplementId1}" ] }, { "machineUri": "https://api.deere.com/platform/machines/{MachineId2}", "equipmentMachineUri": "https://equipmentapi.deere.com/isg/equipment/{EquipmentId2}", "equipmentImplementUris": [ "https://equipmentapi.deere.com/isg/equipment/{EquipmentId2}", "https://equipmentapi.deere.com/isg/equipment/{EquipmentId2}" ], "implementUris": [ "https://api.deere.com/platform/implements/{ImplementId2}", "https://api.deere.com/platform/implements/{ImplementId2}" ] } ], "guidanceSettings": { "preferenceSettings": { "includeLatestFieldOperation": "NONE", "preferenceMode": "USER_SELECTED", "entityType": "GUIDANCE_LINE", "entityUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId}" }, "includeGuidance": [ { "entityType": "GUIDANCE_LINE", "entityUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId}" }, { "entityType": "GUIDANCE_PLAN", "entityUri": "https://api.deere.com/isg/organizations/{OrganizationId}/guidancePlans/{GuidancePlanId}" }, { "entityType": "SOURCE_OPERATION", "entityUri": "https://sandboxapi.deere.com/platform/fieldOperations/{FieldOperationId}" } ] }, "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Request [JSON]: Create Tillage work plan [Minimum request payload]
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiTillage" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiTillage" }, "operationInputs": [] } ], "workPlanAssignments": [], "guidanceUris": [], "workOrder": "", "instructions": "" }
Sample Request [JSON]: Create Tillage work plan
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiTillage" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiTillage" }, "operationInputs": [ { "operationPrescription": { "fixedRate": { "valueAsDouble": 10, "unit": "cm", "vrDomainId": "vrTillageDepthTarget" } } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}", "https://sandboxapi.deere.com/platform/implements/{ImplementId2}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Request [JSON]: Create Seeding work plan [Minimum request payload]
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] } ], "workPlanAssignments": [], "guidanceUris": [], "workOrder": "", "instructions": "" }
Sample Request [JSON]: Create Seeding + Application work plan [Minimum request payload]
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] }, { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [] } ], "workPlanAssignments": [], "guidanceUris": [], "workOrder": "", "instructions": "" }
Sample Request [JSON]: Create Seeding work plan
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId1}", "inputType": "VARIETY" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 15000, "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId2}", "inputType": "VARIETY" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId1}", "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId1}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId1}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}" ] }, { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId2}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId2}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId2}", "https://sandboxapi.deere.com/platform/implements/{ImplementId3}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Request [JSON]: Create Seeding + Application work plan
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId1}", "inputType": "VARIETY" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 15000, "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId2}", "inputType": "VARIETY" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId1}", "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProducts": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] }, { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/chemicals/{ChemicalId1}", "inputType": "CHEMICAL" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 60, "unit": "l1ha-1", "vrDomainId": "vrAppRateVolumeTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fertilizers/{FertilizerId1}", "inputType": "FERTILIZER" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId2}", "unit": "kg1ha-1", "vrDomainId": "vrAppRateMassTarget" } } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId1}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId1}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}" ] }, { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId2}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId2}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}", "https://sandboxapi.deere.com/platform/implements/{ImplementId2}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Request [JSON]: Create Application work plan [Minimum request payload]
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [] } ], "workPlanAssignments": [], "guidanceUris": [], "workOrder": "", "instructions": "" }
Sample Request [JSON]: Create Application work plan
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/chemicals/{ChemicalId1}", "inputType": "CHEMICAL" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 60, "unit": "l1ha-1", "vrDomainId": "vrAppRateVolumeTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fertilizers/{FertilizerId1}", "inputType": "FERTILIZER" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId2}", "unit": "kg1ha-1", "vrDomainId": "vrAppRateMassTarget" } } }, { "operationProduct": { "inputUri": "https://api.deere.com/platform/organizations/294130/tankMixes/bf6b0bf0-8f5b-442d-963a-e6629fc8a390", "inputType": "TANK_MIX", "operationPrescription": { "fixedRate": { "valueAsDouble": 120, "unit": "gal1ac-1", "vrDomainId": "vrSolutionRateLiquid" } } } }, { "operationProduct": { "inputUri": "https://api.deere.com/platform/organizations/294130/dryBlends/e2dc48f1-dd37-4dcb-ba87-8ec06955d5b5", "inputType": "DRY_BLEND", "operationPrescription": { "fixedRate": { "valueAsDouble": 920.22, "unit": "kg1ha-1", "vrDomainId": "vrSolutionRateMass" } } } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId1}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId1}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Request [JSON]: Create Harvest work plan [Minimum request payload]
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiHarvest" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiHarvest" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] } ], "workPlanAssignments": [], "guidanceUris": [], "workOrder": "", "instructions": "" }
Sample Request [JSON]: Create Harvest work plan
{ "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiHarvest" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiHarvest" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId1}", "inputType": "VARIETY" } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId1}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId1}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workOrder": "Sample work order", "instructions": "Sample work instructions" }
Sample Response [JSON]
Location:https://sandboxapi.deere.com/platform//organizations/{OrganizationId}/workPlans/{WorkPlanId}
{ "links": { "rel": "self", "uri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/workPlans/{WorkPlanId}" }, "erid": "{WorkPlanId}", "location": { "fieldUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}" }, "workType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "year": 2021, "operations": [ { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiSeeding" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId1}", "inputType": "VARIETY" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 15000, "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/varieties/{VarietyId2}", "inputType": "VARIETY" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId1}", "unit": "seeds1ha-1", "vrDomainId": "vrSeedRateSeedsTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/cropTypes/{CropName}", "inputType": "CROP" } } ] }, { "operationType": { "representationDomainId": "dtOperationClass", "instanceDomainId": "dtiApplication" }, "operationInputs": [ { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/chemicals/{ChemicalId}", "inputType": "CHEMICAL" }, "operationPrescription": { "fixedRate": { "valueAsDouble": 60, "unit": "l1ha-1", "vrDomainId": "vrAppRateVolumeTarget" } } }, { "operationProduct": { "inputUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/chemicals/{FertilizerId}", "inputType": "FERTILIZER" }, "operationPrescription": { "prescriptionUse": { "fileUri": "https://sandboxapi.deere.com/platform/files/{FileId2}", "unit": "kg1ha-1", "vrDomainId": "vrAppRateMassTarget" } } } ] } ], "workPlanAssignments": [ { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId1}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId1}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId1}" ] }, { "machineUri": "https://sandboxapi.deere.com/platform/machines/{MachineId2}", "operatorUri": "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/operators/{OperatorId2}", "implementUris": [ "https://sandboxapi.deere.com/platform/implements/{ImplementId2}", "https://sandboxapi.deere.com/platform/implements/{ImplementId3}" ] } ], "guidanceUris": [ "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId1}", "https://sandboxapi.deere.com/platform/organizations/{OrganizationId}/fields/{FieldId}/guidanceLines/{GuidanceId2}" ], "workStatus": "PLANNED", "workOrder": "Sample work order", "instructions": "Sample work instructions", "sequenceNumber": 1500 }
Sample Response [JSON]: Error
Location:https://sandboxapi.deere.com/platform//organizations/{OrganizationId}/workPlans/{WorkPlanId}
{ "total": 4, "errors": [ { "guid": "6d7c5648-a87a-4360-aa7d-fc063291389f", "message": "size must be between 1 and 2", "field": "operations", "@type": "Error" }, { "guid": "b18e8f42-20fe-41d4-8164-f1a30fa221cb", "message": "must not be null", "field": "year", "@type": "Error" }, { "guid": "f2ad44b7-c41d-4c1d-9377-8d3ebcb33ac8", "message": "must not be null", "field": "location", "@type": "Error" }, { "guid": "fe094b6c-9c16-41c5-99c7-e0075146acd3", "message": "must not be null", "field": "workType", "@type": "Error" } ], "@type": "Errors" }