{"id":22732,"date":"2025-04-17T14:28:35","date_gmt":"2025-04-17T14:28:35","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22732"},"modified":"2026-01-16T13:43:18","modified_gmt":"2026-01-16T13:43:18","slug":"how-to-import-time-off-balance-for-multiple-users-via-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/general-api-troubleshooting\/how-to-import-time-off-balance-for-multiple-users-via-api","title":{"rendered":"How to import time off balance for multiple users via API"},"content":{"rendered":"\n<p>To import time-off balances for multiple users, you can use the API to update the balance for each user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"translation-block\"><strong>Create a <code>PATCH<\/code> request<\/strong> to update user balances:<br>Endpoint: <code>PATCH <\/code><br><a href=\"https:\/\/docs.clockify.me\/#tag\/Balance\/operation\/updateBalance\"><code>\/v1\/workspaces\/{workspaceId}\/time-off\/balance\/policy\/{policyId}\/<\/code><\/a><\/li>\n\n\n\n<li><strong>Prepare your CSV file<\/strong>:<br>Extract user IDs from Clockify and prepare a CSV file with user IDs and corresponding balance data<\/li>\n\n\n\n<li><strong>Run collection in Postman<\/strong>:<br>Upload your CSV and execute the request<\/li>\n<\/ol>\n\n\n\n<p class=\"translation-block\">The users&#8217; time-off balances will be updated successfully, and you will receive a <code>204 No Content<\/code> response.<\/p>\n","protected":false},"excerpt":{"rendered":"To import time-off balances for multiple users, you can use the API to update th&#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-22732","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\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/comments?post=22732"}],"version-history":[{"count":8,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22732\/revisions"}],"predecessor-version":[{"id":23126,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22732\/revisions\/23126"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}