User Tools

Site Tools


mantis:cloudapp:issue:222

POST: /api/1.0/folder/show

The show action lists the properties of a single folder.

Arguments:

  • id: Id of the Item
  • details: Detail-Level

State: 200

Notes:

  • This is the only action that can access hidden folders

  
  {
      "id": "61d8cdd9-7781-4268-9c40-a86022322c2d",
      "created": 1762844671,
      "updated": 1762844671,
      "edited": 1762844671,
      "revision": "1328e65b-182e-4dc1-ad6d-03dcc91efc51",
      "label": "Test",
      "parent": "00000000-0000-0000-0000-000000000000",
      "cseKey": "",
      "cseType": "none",
      "sseType": "SSEv1r2",
      "hidden": false,
      "trashed": false,
      "favorite": false,
      "client": "Passwords Session 11.11.25 06:59 - admin@194.95.207.108"
  }

POST: /api/1.0/folder/find

The find action can be used to find all folders matching the given search criteria. Only a specific set of fields is allowed in the criteria.

Arguments:

  • createria: The search criteria(created, updated, edited, cseType, sseType, parent, trashed, favorite)
  • details: Detail-Level

Comparison Operators

Operator PHP Equivalent Description
eq == Field `equals` value
ne != Field `not equals` value
lt < Field `is less than` value
gt > Field `is greater than` value
le Field `is less or equals` value
ge >= Field `is greater or equals` value

State: 200

Notes:

  • The property trashed will be set to false if not present
  • The property parent is only supported in 2019.5.0 and later
  • The list will not include hidden folders
  • The list will not include suspended folders where a parent folder is in the trash

Request:

  {
      "criteria": {
          "created": ["gt", "0"]
      }
  }
  

Response:

  [
      {
          "id": "61d8cdd9-7781-4268-9c40-a86022322c2d",
          "created": 1762844671,
          "updated": 1762844671,
          "edited": 1762844671,
          "revision": "1328e65b-182e-4dc1-ad6d-03dcc91efc51",
          "label": "Test",
          "parent": "00000000-0000-0000-0000-000000000000",
          "cseKey": "",
          "cseType": "none",
          "sseType": "SSEv1r2",
          "hidden": false,
          "trashed": false,
          "favorite": false,
          "client": "Passwords Session 11.11.25 06:59 - admin@194.95.207.108"
      }
  ]
mantis/cloudapp/issue/222.txt · Last modified: by domjos