{
  "opencollection": "1.0.0",
  "info": {
    "name": "ChartHop access category API",
    "version": "V1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "category",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Return categories that are available to the organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/org/:orgId/category",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "Org identifier (either id or slug)"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "(Optional) Return only built-in or custom categories"
              },
              {
                "name": "unsorted",
                "value": "",
                "type": "query",
                "description": "(Optional) Return categories array unsorted"
              }
            ]
          },
          "docs": "Return categories that are available to the organization"
        },
        {
          "info": {
            "name": "Create a category",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/org/:orgId/category",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "Org identifier (either id or slug)"
              }
            ]
          },
          "docs": "Create a category"
        },
        {
          "info": {
            "name": "Return a particular category by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/org/:orgId/category/:categoryId",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "Org identifier (either id or slug)"
              },
              {
                "name": "categoryId",
                "value": "",
                "type": "path",
                "description": "Category id"
              }
            ]
          },
          "docs": "Return a particular category by id"
        },
        {
          "info": {
            "name": "Update an existing category",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/org/:orgId/category/:categoryId",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "Org identifier (either id or slug)"
              },
              {
                "name": "categoryId",
                "value": "",
                "type": "path",
                "description": "Category id"
              }
            ]
          },
          "docs": "Update an existing category"
        },
        {
          "info": {
            "name": "Delete a category",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/org/:orgId/category/:categoryId",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path",
                "description": "Org identifier (either id or slug)"
              },
              {
                "name": "categoryId",
                "value": "",
                "type": "path",
                "description": "Category id"
              }
            ]
          },
          "docs": "Delete a category"
        }
      ]
    }
  ],
  "bundled": true
}