GET All folders
Changed onCom este endpoint você pode listar as pastas da empresa. Sem filtros (id, name ou path), a listagem traz apenas as pastas da raiz, com as subpastas aninhadas em sub_folders. Os filtros id, name (igualdade exata) e path localizam pastas em qualquer nível.
Todos os filtros são parâmetros de query. Um path inexistente responde 200 com data: []; barras invertidas no path precisam de URL-encode (%5C).
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/folders
- AuthAPI key in header Authorization
Query parameters
Id da pasta no sistema, pode ser obtido com o list folders geral (Sem filtros).
Nome da pasta visível no sistema.
Filtra pela visibilidade. Usado sozinho, continua restrito às pastas da raiz.
Itens por página: mínimo 1, máximo 100 (acima disso a resposta é 422). Padrão: 15.
Permite buscar uma pasta específica informando o caminho completo da hierarquia. Ex: /api/folders?path=\Agendamentos\Retirada\OSN1
Quando 1, inclui as subpastas em sub_folders. Use 1 ou 0 (a string false responde 422).
Profundidade de subpastas, de 0 a 5 (acima de 5 responde 422). Atualmente o valor não altera o resultado: a árvore completa de subpastas é sempre retornada.
Response
200
Example response
{
"data": [
{
"id": 1,
"folder": "public_folder",
"accessibility": "Everyone",
"created_on": "26/11/2024 14:24:25"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"label": "« Previous"
}
],
"path": "/",
"per_page": 15,
"to": 2,
"total": 2
}
}Changes
- breaking
removed the request body
- breaking
for the
queryrequest parameterper_page, default value was changed from15to15 - breaking
the
/response's property type changed fromstringtointegerfor status - warning
for the
queryrequest parameterper_page, the max was set to100.00 - warning
for the
queryrequest parameterper_page, the min was set to1.00 - warning
added the new
Only Meenum value to the//response property for the response status - info
added the new optional
queryrequest parameterinclude_sub_folders - info
added the new optional
queryrequest parametersub_folders_depth - info
added the non-success response with the status
- info
added the optional property
////to the response with the status - info
removed the
OnlyMeenum value from the//response property for the response status
- breaking