{"id":327,"date":"2014-10-15T00:43:02","date_gmt":"2014-10-15T00:43:02","guid":{"rendered":"http:\/\/www.improvely.com\/docs\/?p=327"},"modified":"2014-10-15T01:11:52","modified_gmt":"2014-10-15T01:11:52","slug":"delete-user_permission-json","status":"publish","type":"post","link":"https:\/\/www.improvely.com\/docs\/delete-user_permission-json","title":{"rendered":"DELETE \/user_permission.json"},"content":{"rendered":"<p><b>Description:<\/b> Revokes a user&#8217;s permission to view or administrate the specified project.<\/p>\n<p><b>API Endpoint URL:<\/b> <code>https:\/\/api.improvely.com\/v1\/user_permission.json<\/code><\/p>\n<table class=\"api\">\n<tr>\n<th>Attribute<\/th>\n<th>Required<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>key<\/td>\n<td style=\"text-align: center\"><i class=\"fa fa-check\"><\/i><\/td>\n<td><\/td>\n<td>Your API key<\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td><\/td>\n<td><\/td>\n<td>The ID number of the user to delete.<\/td>\n<\/tr>\n<tr>\n<td>email<\/td>\n<td><\/td>\n<td><\/td>\n<td>The e-mail address of the user to delete.<\/td>\n<\/tr>\n<tr>\n<td>project<\/td>\n<td style=\"text-align: center\"><i class=\"fa fa-check\"><\/i><\/td>\n<td><\/td>\n<td>The ID number of the Improvely project to revoke permission to. You can retrieve this number from the top of the Project Settings page of the relevant project in your account. <\/td>\n<\/tr>\n<\/table>\n<p><b>Note:<\/b> Either <code>id<\/code> or <code>email<\/code> must be provided to identify which user to grant this permission to.<\/p>\n<p><strong>Example request:<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl https:\/\/api.improvely.com\/v1\/user_permission.json \\\r\n  -X DELETE \\\r\n  -d 'key=90c0d64fds653338as6869e54267e05&amp;amp;email=dan@awio.com&amp;amp;project=1'\r\n<\/pre>\n<p><strong>Example successful response (HTTP status code 200):<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n    &amp;quot;status&amp;quot;: &amp;quot;success&amp;quot;\r\n}\r\n<\/pre>\n<p><strong>Example failure response (HTTP status code: 400):<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n    &amp;quot;status&amp;quot;: &amp;quot;error&amp;quot;,\r\n    &amp;quot;type&amp;quot;: &amp;quot;parameters&amp;quot;,\r\n    &amp;quot;message&amp;quot;: &amp;quot;Missing parameter: either `id` or `email` must be provided.&amp;quot;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Description: Revokes a user&#8217;s permission to view or administrate the specified project. API Endpoint URL: https:\/\/api.improvely.com\/v1\/user_permission.json Attribute Required Default Description key Your API key id The ID number of the user to delete. email The e-mail address of the user to delete. project The ID number of the Improvely project to revoke permission to. You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":3,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/posts\/327\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.improvely.com\/docs\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}