{"id":14316,"date":"2022-08-09T13:57:31","date_gmt":"2022-08-09T16:57:31","guid":{"rendered":"https:\/\/jmvstream.com\/create-new-gallery\/"},"modified":"2022-08-09T15:03:59","modified_gmt":"2022-08-09T18:03:59","slug":"create-new-gallery","status":"publish","type":"post","link":"https:\/\/jmvstream.com\/en\/development\/create-new-gallery\/","title":{"rendered":"Create new 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\">Method<\/th>\n<th scope=\"col\">Route<\/th>\n<th scope=\"col\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>POST<\/td>\n<td><code>\/v1\/folders <\/code><\/td>\n<td>Create a new folder. Being able to pass the uuid of the parent folder.<\/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>Body params<\/h2>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<table class=\"col\">\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>name<\/td>\n<td><code>String<\/code><\/td>\n<td>New gallery name.<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>description<\/td>\n<td><code>String<\/code><\/td>\n<td>Description of the new gallery.<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>parentUuid<\/td>\n<td><code>String<\/code><\/td>\n<td>Parent gallery uid (Ex.: 073f84d0-8256-45f8-9527-fd3c6b2f2038)<\/td>\n<td>No<\/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 creating new gallery (Status: 200)<\/h4>\n<p>[\/vc_column_text][inova_raw_html]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\r\n    \"id_customer_plans\": 256,\r\n    \"created_date\": \"2022-06-08T13:40:23.667Z\",\r\n    \"updated_date\": \"2022-06-08T13:40:23.667Z\",\r\n    \"uuid\": \"9a4b6b1a-0617-4609-a2c7-1f35fe7016a2\",\r\n    \"name\": null,\r\n    \"description\": \"\",\r\n    \"parentId\": null,\r\n    \"hierarchyLevel\": null,\r\n    \"id\": 109\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] Method Route Description POST \/v1\/folders Create a new folder. Being able to<\/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-14316","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\/14316","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=14316"}],"version-history":[{"count":0,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/posts\/14316\/revisions"}],"wp:attachment":[{"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/media?parent=14316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/categories?post=14316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmvstream.com\/en\/wp-json\/wp\/v2\/tags?post=14316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}