- Documentation
- Sandbox
Documentation
Deletes a material usage of a Workdone. Returns the parent Workdone, not the removed usage
Requirements
| Name | Requirement | Type | Description |
|---|---|---|---|
| usageid | integer|string | MaterialUsage id | |
| wdid | integer|string | Workdone id |
Headers
| Name | Required? | Description |
|---|---|---|
| X-Terake-Api-Key | false | Worker or token api key. The preferred way to authenticate; send this or the apikey query parameter. |
Return
| Parameter | Type | Versions | Description |
|---|---|---|---|
200 |
|||
| is_transport_work | boolean | * | |
| is_silage_transport_work | boolean | * | |
| location_history | array | * | |
| pause_minutes | integer | * | |
| roster_type | array | * | |
| duration_seconds | integer | * | |
| paused_from_timestamp | integer | * | |
| duration_as_text | string | * | |
| from_time | DateTime | * | |
| to_time | DateTime | * | |
| silage_transports | custom handler result for (Doctrine\Common\Collections\Collection) | * | Get silageTransports. |
| transport_cases | custom handler result for (Doctrine\Common\Collections\Collection) | * | Get transportCases. |
| id | integer | * | |
| description | string | * | |
| start_time | DateTime | * | |
| stop_time | DateTime | * | |
| worker | object (Worker) | * | |
| worktype | object (Worktype) | * | |
| main_facility | object (Facility) | * | |
| main_facility_start_hour | float | * | |
| main_facility_stop_hour | float | * | |
| secondary_facility | object (Facility) | * | |
| agrifield | object (Agrifield) | * | |
| kilometer_start | integer | * | |
| kilometer_stop | integer | * | |
| fuel_consumption | integer | * | |
| is_approved | boolean | * | |
| approver | object (Worker) | * | |
| approving_time | DateTime | * | |
| pria_sync_time | DateTime | * | |
| hectares_served | float | * | |
| is_mobile_initiated | boolean | * | |
| start_latitude | float | * | |
| start_longitude | float | * | |
| stop_latitude | float | * | |
| stop_longitude | float | * | |
| material_usages[] | array of objects (MaterialUsage) | * | |
| cost_account | object (CostAccount) | * | |
| pause_total_duration | integer | * | |
| is_paused | boolean | * | |
| planitem | object (Planitem) | * | |
| rosteritem | object (Rosteritem) | * | |
| fuel_filling | object (FuelFilling) | * | |
| faultitem | object (Faultitem) | * | |
| inspection_case | object (InspectionCase) | * | |
| is_forbidden_for_fieldbook | boolean | * | |
| is_forbidden_for_customer | boolean | * | |
| customer | object (Customer) | * | |
| description_extended | string | * | |
| is_agrifield_finished | boolean | * | |
| hectares_displayed | float | * | |
| yield_measured | float | * | |
| department | object (Department) | * | |
| crop_period | object (CropPeriod) | * | |
| project | object (Project) | * | |
| device_uuid | string | * | |
| foreman_info | object (WorkdoneForemanInfo) | * | @ORM\OneToOne(targetEntity="WorkdoneForemanInfo", mappedBy="workdone" ) |
| workdone_telemetry | object (WorkdoneTelemetry) | * | @ORM\OneToOne(targetEntity="WorkdoneTelemetry", mappedBy="workdone" ) |
| workplace | object (Workplace) | * | |
| workdone_geo_track[] | array of objects (WorkdoneGeoTrack) | * | |
| workdone_pictures[] | array of objects (WorkdonePicture) | * | |
| workdone_device_location | object (WorkdoneDeviceLocation) | * | @ORM\OneToOne(targetEntity="WorkdoneDeviceLocation", mappedBy="workdone" ) |
| is_unfinished | boolean | * | |
| is_invoiced | boolean | * | |
| is_manual_entry | boolean | * | |
| is_auto_created | boolean | * | |
| is_auto_stopped | boolean | * | |
| is_signed | boolean | * | |
| workdone_approval | object (WorkdoneApproval) | * | |
| workdone_budget | object (WorkdoneBudget) | * | |
| is_deleted | boolean | * | |
| is_archived | boolean | * | |
| maintenance_unit | object (Facility) | * | |