{"id":14305,"date":"2022-08-09T13:38:14","date_gmt":"2022-08-09T16:38:14","guid":{"rendered":"https:\/\/jmvstream.com\/?p=14305"},"modified":"2022-08-09T15:04:37","modified_gmt":"2022-08-09T18:04:37","slug":"delete-gallery","status":"publish","type":"post","link":"https:\/\/jmvstream.com\/en\/development\/delete-gallery\/","title":{"rendered":"Delete Gallery"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<\/p>\n<h2>Route<\/h2>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<table class=\"table\">\n<thead>\n<tr>\n<th scope=\"col\">M\u00e9todo<\/th>\n<th scope=\"col\">Rota<\/th>\n<th scope=\"col\">Descri\u00e7\u00e3o<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>DELETE<\/td>\n<td><code>\/v1\/folders <\/code><\/td>\n<td>Delete Gallery.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/inova_raw_html][\/vc_column][\/vc_row][vc_row apply_row_margin=&#8221;individually&#8221; row_margin_bottom=&#8221;10px&#8221;][vc_column][vc_column_text]<\/p>\n<h2>Headers<\/h2>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<table class=\"table\">\n<thead>\n<tr>\n<th scope=\"col\">Param<\/th>\n<th scope=\"col\">Type<\/th>\n<th scope=\"col\">Description<\/th>\n<th scope=\"col\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Authorization<\/td>\n<td><code>String<\/code><\/td>\n<td>*Authorization token to access the route.<br \/>\nEx: Bearer eyJ0eXAiOiJKV1QiLC\u2026<\/td>\n<td>Yes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/inova_raw_html][vc_column_text]* Token generated by the <a href=\"\/en\/developer\/getting-started\/authentication\/\" target=\"_blank\" rel=\"noopener\">authentication route<\/a>[\/vc_column_text][\/vc_column][\/vc_row][vc_row apply_row_margin=&#8221;individually&#8221; row_margin_bottom=&#8221;10px&#8221;][vc_column][vc_column_text]<\/p>\n<h2>Query params<\/h2>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<table class=\"table\">\n<thead>\n<tr>\n<th scope=\"col\">Param<\/th>\n<th scope=\"col\">Type<\/th>\n<th scope=\"col\">Description<\/th>\n<th scope=\"col\">Required<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>uuid<\/td>\n<td><code>String<\/code><\/td>\n<td>Gallery uid<\/td>\n<td>Yes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/inova_raw_html][\/vc_column][\/vc_row][vc_row apply_row_margin=&#8221;individually&#8221; row_margin_bottom=&#8221;15px&#8221;][vc_column][vc_column_text]<\/p>\n<h2>Response<\/h2>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h4>&#8211; Response when deleting gallery (Status: 200)<\/h4>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">1<\/pre>\n<p>[\/inova_raw_html][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h4>&#8211; Error response due to gallery requested for deletion not being empty (Status: 400)<\/h4>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\r\n    \"error\": \"Folder is not empty'\"\r\n}<\/pre>\n<p>[\/inova_raw_html][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h4>&#8211; Error response when not finding specified folder (Status: 404)<\/h4>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\r\n    \"error\": \"Folder not found\"\r\n}<\/pre>\n<p>[\/inova_raw_html][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h4>&#8211; Error response for some internal error (Status: 500)<\/h4>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\r\n  \"error\": \"Internal Server Error\"\r\n}<\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] Route [\/vc_column_text][inova_raw_html] M\u00e9todo Rota Descri\u00e7\u00e3o DELETE \/v1\/folders Delete Gallery. [\/inova_raw_html][\/vc_column][\/vc_row][vc_row apply_row_margin=&#8221;individually&#8221; row_margin_bottom=&#8221;10px&#8221;][vc_column][vc_column_text] Headers [\/vc_column_text][inova_raw_html]<\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"documentation.php","format":"standard","meta":{"footnotes":""},"categories":[410,413],"tags":[],"class_list":["post-14305","post","type-post","status-publish","format-standard","hentry","category-development","category-galleries"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/posts\/14305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/comments?post=14305"}],"version-history":[{"count":0,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/posts\/14305\/revisions"}],"wp:attachment":[{"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/media?parent=14305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/categories?post=14305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/tags?post=14305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}