{"id":36287,"date":"2024-08-21T13:59:46","date_gmt":"2024-08-21T12:59:46","guid":{"rendered":"https:\/\/developers.ila.cegid.com\/valuekeep\/\/"},"modified":"2024-12-26T18:48:29","modified_gmt":"2024-12-26T17:48:29","slug":"webapi-deleting-a-misc-cost","status":"publish","type":"valuekeep","link":"https:\/\/developers.ila.cegid.com\/en\/valuekeep\/development-en\/transversal-en\/article\/webapi-deleting-a-misc-cost","title":{"rendered":"How to create or delete a miscellaneous cost?"},"content":{"rendered":"<section class=\"av_textblock_section \"  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock  '   itemprop=\"text\" ><h2>Create miscellaneous cost<\/h2>\n<div>\n<p style=\"font-weight: 400;\">This method allows to create a misc cost in a simplified manner.<\/p>\n<p style=\"font-weight: 400;\">\u00a0The method to be used when creating a misc cost is:<\/p>\n<p style=\"font-weight: 400;\"><b><strong>POST url\/api\/mytenant\/myorganization\/maintenancecore\/misccosts<\/strong><\/b><\/p>\n<p style=\"font-weight: 400;\">\u00a0Json example for creating a misc cost:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\r\n        \"miscCostsKey\": \"RF\",\r\n        \"description\": \"Refei\u00e7\u00f5es\",\r\n        \"remarks\": null\r\n}<\/pre>\n<p>This method allows to create a misc cost according to the parameters filled in:<\/p>\n<ul>\n<li><b><strong>misccostKey<\/strong><\/b>:\u00a0The misc cost key. This field is mandatory.<\/li>\n<li><b><strong>description<\/strong><\/b>: Short description of the misc cost. This field is mandatory.<\/li>\n<li><b><strong>remarks<\/strong><\/b>: Remarks.<\/li>\n<\/ul>\n<p>When this method is executed successfully, it returns HttpStatusCode.201Created.<\/p>\n<\/div>\n<div><\/div>\n<\/div><\/section>\n<section class=\"av_textblock_section \"  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock  '   itemprop=\"text\" ><h2>Delete miscellaneous cost<\/h2>\n<div>This method allows you to delete a misc cost.<\/div>\n<div><\/div>\n<div>The method to be used when deleting a misc cost is: <b>DELETE<\/b><\/div>\n<div><b> url\/api\/mytenant\/myorganization\/maintenancecore\/misccosts\/{{misccostKey}}<\/b><\/div>\n<div><\/div>\n<div>The parameters being replaced on the method are:<\/div>\n<ol>\n<li style=\"list-style-type: disc;\"><b>misccostKey<\/b>: The key of the misc cost you wish to delete.<\/li>\n<\/ol>\n<div><\/div>\n<div>When this method is executed successfully, it returns HttpStatusCode.204.<\/div>\n<div><\/div>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","tags":[912],"videos_tax":[],"post-type":[],"categoria-valuekeep":[947],"class_list":["post-36287","valuekeep","type-valuekeep","status-publish","format-standard","hentry","tag-costs","categoria-valuekeep-transversal-en"],"_links":{"self":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep\/36287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep"}],"about":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/types\/valuekeep"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/comments?post=36287"}],"version-history":[{"count":0,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/valuekeep\/36287\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/media?parent=36287"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/tags?post=36287"},{"taxonomy":"videos_tax","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/videos_tax?post=36287"},{"taxonomy":"post-type","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/post-type?post=36287"},{"taxonomy":"categoria-valuekeep","embeddable":true,"href":"https:\/\/developers.ila.cegid.com\/en\/wp-json\/wp\/v2\/categoria-valuekeep?post=36287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}