Other Costs

Update a Other Cost

This endpoint allows you to update an Other Cost. Only users with the role "admin" or "manager" can perform this operation.

patch/other-costs/{otherCostId}

Request

  • Base URL: https://api.infraspeak.com/v3
  • URL: https://api.infraspeak.com/v3/other-costs/{otherCostId}
  • Auth: HTTP bearer

Path parameters

otherCostIdstring required

The Other Cost ID

Request body

namestring

The name (or description) of the Other Cost

input_type'currency' | 'distance' | 'interval' | 'time_range' | 'resource' | 'custom_unit_of_measurement'

The type of Other Cost. Different types of Other Costs have different associated fields. Other Costs of type resource will measure its total cost based on how long (e.g. hours, minutes) the resource is occupied. Other Costs of type distance will measure its total cost based on how many units (e.g. meters, kilometers) are needed. Other Costs of type interval and time_range will measure its total cost based on duration. Other Costs of type currency will have a fixed cost manually defined for each operation. Other Costs of type custom_unit_of_measurement will measure its total cost based on how many units (e.g. m3, liters) are needed.

failureboolean

Indicates if the Other Cost can be included in costs for Corrective Maintenance (Work Orders)

schedule_workunknown
operatorunknown
elementunknown
icon'truck' | 'car' | 'clock-o' | 'bed' | 'user' | 'usd' | 'cutlery' | 'wrench'

The icon to be presented for the Other Cost in Infraspeak platform.

cost_per_unitunknown
default_sell_priceunknown
default_sell_vatunknown
unitunknown

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.