{
  "opencollection": "1.0.0",
  "info": {
    "name": "Spiceworks Cloud Apps Comments API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "implicit",
      "authorizationUrl": "https://community.spiceworks.com/oauth/authorize",
      "credentials": {
        "clientId": "{{clientId}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Comments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Ticket Comments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://community.spiceworks.com/api/v1/tickets/:ticket_id/comments",
            "params": [
              {
                "name": "ticket_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the ticket"
              }
            ]
          },
          "docs": "Retrieves all comments associated with a specific Help Desk ticket. Comments include the body text, the author, creation timestamp, and whether the comment is public or internal (technician-only)."
        },
        {
          "info": {
            "name": "Add Ticket Comment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://community.spiceworks.com/api/v1/tickets/:ticket_id/comments",
            "params": [
              {
                "name": "ticket_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the ticket"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a new comment to an existing Help Desk ticket. Comments can be public (visible to the ticket requester) or internal (visible only to technicians). Supports plain text and basic HTML formatting."
        }
      ]
    }
  ],
  "bundled": true
}