{"id":22740,"date":"2025-04-17T14:32:16","date_gmt":"2025-04-17T14:32:16","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22740"},"modified":"2026-01-16T13:42:28","modified_gmt":"2026-01-16T13:42:28","slug":"how-to-activate-deactivate-users-via-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/general-api-troubleshooting\/how-to-activate-deactivate-users-via-api","title":{"rendered":"How to activate\/deactivate users via API"},"content":{"rendered":"\n<p>To activate or deactivate a user, use the following API call:<\/p>\n\n\n\n<p><strong>Endpoint<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/docs.clockify.me\/#tag\/Workspace\/operation\/updateUserStatus\"><code>PUT \/v1\/workspaces\/{workspaceId}\/users\/{userId}<\/code><\/a><\/code><\/pre>\n\n\n\n<p class=\"tip translation-block\">In the request body, specify the status (<code>active<\/code> or <code>inactive<\/code>) to update the user&#8217;s status.<\/p>\n","protected":false},"excerpt":{"rendered":"To activate or deactivate a user, use the following API call: Endpoint: In the r&#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-22740","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\/22740","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=22740"}],"version-history":[{"count":5,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22740\/revisions"}],"predecessor-version":[{"id":23090,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22740\/revisions\/23090"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}