Valuekeep DevelopmentTransversal
DevelopmentTransversal
Transversal
Back | List of Articles

How to create or delete a miscellaneous cost?

Last changed in 26/12/2024

Create miscellaneous cost

This method allows to create a misc cost in a simplified manner.

 The method to be used when creating a misc cost is:

POST url/api/mytenant/myorganization/maintenancecore/misccosts

 Json example for creating a misc cost:

{
        "miscCostsKey": "RF",
        "description": "Refeições",
        "remarks": null
}

This method allows to create a misc cost according to the parameters filled in:

  • misccostKey: The misc cost key. This field is mandatory.
  • description: Short description of the misc cost. This field is mandatory.
  • remarks: Remarks.

When this method is executed successfully, it returns HttpStatusCode.201Created.

Delete miscellaneous cost

This method allows you to delete a misc cost.
The method to be used when deleting a misc cost is: DELETE
url/api/mytenant/myorganization/maintenancecore/misccosts/{{misccostKey}}
The parameters being replaced on the method are:
  1. misccostKey: The key of the misc cost you wish to delete.
When this method is executed successfully, it returns HttpStatusCode.204.
Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.
Related Articles
How to create or delete a maintenance plan? How to get the list of maintenance plans? How to create or delete a miscellaneous cost type? How to get the list of miscellaneous cost types? How to get the list of miscellaneous costs?