Route
Method | Route | Description |
---|---|---|
POST | /v1/folders |
Create a new folder. Being able to pass the uuid of the parent folder. |
Headers
Param | Type | Description | Required |
---|---|---|---|
Authorization | String |
*Authorization token to access the route. Ex: Bearer eyJ0eXAiOiJKV1QiLC… |
Yes |
* Token generated by the authentication route
Body params
Param | Type | Description | Required |
---|---|---|---|
name | String |
New gallery name. | No |
description | String |
Description of the new gallery. | No |
parentUuid | String |
Parent gallery uid (Ex.: 073f84d0-8256-45f8-9527-fd3c6b2f2038) | No |
Response
– Response when creating new gallery (Status: 200)
{ "id_customer_plans": 256, "created_date": "2022-06-08T13:40:23.667Z", "updated_date": "2022-06-08T13:40:23.667Z", "uuid": "9a4b6b1a-0617-4609-a2c7-1f35fe7016a2", "name": null, "description": "", "parentId": null, "hierarchyLevel": null, "id": 109 }
– Error response for some internal error (Status: 500)
{ "error": "Internal Server Error" }