{"id":22724,"date":"2025-04-17T13:57:44","date_gmt":"2025-04-17T13:57:44","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22724"},"modified":"2026-01-16T13:46:03","modified_gmt":"2026-01-16T13:46:03","slug":"how-to-create-or-edit-an-expense-via-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/de\/troubleshooting\/general-api-troubleshooting\/how-to-create-or-edit-an-expense-via-api","title":{"rendered":"Ausgaben \u00fcber API erstellen oder bearbeiten"},"content":{"rendered":"<p>In diesem Artikel wird die Erstellung und die Bearbeitung einer Ausgabe \u00fcber die Clockify-API erkl\u00e4rt, was eine bestimmte Formatierungstechnik erfordert. Ausgaben werden anders als andere API-Anfragen in Clockify behandelt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Schritte zur Erstellung\/Bearbeitung einer Ausgabe \u00fcber API<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Melde dich bei Postman an:<\/strong>: Stelle sicher, dass du bei deinem Postma-Konto angemeldet bist<\/li>\n\n\n\n<li><strong>Erstelle eine POST-Anfrage (Ausgabe erstellen) oder PUT-Anfrage (Ausgabe bearbeiten)<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Lege den Anfragenpfad auf: <br><a href=\"https:\/\/docs.clockify.me\/#tag\/Expense\/operation\/createExpense\"><code>\/v1\/workspaces\/{workspaceId}\/expenses<\/code><\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Lege Headers fest:<\/strong>:\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\">F\u00fcge zur Authentifizierung <code>X-Api-Key<\/code> hinzu<\/li>\n\n\n\n<li class=\"translation-block\">Bestimme <code>Content-Type<\/code> als <code>multipart\/form-data<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Body-Format:<\/strong>:\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\">W\u00e4hle <code>form-data<\/code> statt <code>raw<\/code> f\u00fcr den Body-Typ<\/li>\n\n\n\n<li>Gib die folgenden Schl\u00fcssel (KEY) und die passenden Werte (VALUE) ein (ohne Anf\u00fchrungszeichen):\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\"><strong>KEY<\/strong>: <code>user_id<\/code>, <code>date, project_id<\/code>, <code>category_id<\/code>, <code>notes<\/code>, <code>amount<\/code>, <code>billable<\/code><\/li>\n\n\n\n<li class=\"translation-block\"><strong>VALUE<\/strong>: Gib die Datenwerte direkt ein (ohne Anf\u00fchrungszeichen vor und nach Werten)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Sende die Anfrage<\/strong>: \u00dcberpr\u00fcfe den Status der Anfrage nach der Sendung\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\">Wenn die Sendung erfolgreich ist, solltest du die Antwort <code>201 Created<\/code> sehen<\/li>\n\n\n\n<li class=\"translation-block\">Die Antwort wird im <strong>JSON<\/strong>-Format angezeigt<\/li>\n<\/ul>\n<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"These instructions explain how to create or edit an expense using the Clockify A&#8230;","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[73],"tags":[],"class_list":["post-22724","post","type-post","status-publish","format-standard","hentry","category-general-api-troubleshooting"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"tamara radijevac","author_link":"https:\/\/clockify.me\/help\/de\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/posts\/22724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/comments?post=22724"}],"version-history":[{"count":11,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/posts\/22724\/revisions"}],"predecessor-version":[{"id":23085,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/posts\/22724\/revisions\/23085"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/media?parent=22724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/categories?post=22724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/de\/wp-json\/wp\/v2\/tags?post=22724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}