{"info":{"_postman_id":"35993fba-6917-4181-9441-edaf794ac929","name":"MiniTicketTracker","description":"<html><head></head><body><h1 id=\"minitickettracker-api\">MiniTicketTracker API</h1>\n<p>A lightweight ticket tracking REST API for creating and managing support tickets. It provides endpoints to create, retrieve, and update tickets, as well as monitor service health and view ticket statistics.</p>\n<p><strong>Base URL:</strong> <code>https://mini-ticket-tracker.onrender.com</code></p>\n<hr>\n<h2 id=\"endpoints\">Endpoints</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/health</code></td>\n<td>healthCheck</td>\n<td>Check if the service is up and running</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/tickets</code></td>\n<td>createTicket</td>\n<td>Create a new support ticket</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/tickets</code></td>\n<td>getTickets</td>\n<td>Retrieve a list of all tickets</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/tickets/stats</code></td>\n<td>getTicketStats</td>\n<td>Get ticket counts grouped by status</td>\n</tr>\n<tr>\n<td>PATCH</td>\n<td><code>/tickets/:id</code></td>\n<td>updateTicket</td>\n<td>Update the status or priority of a ticket</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"ticket-fields\">Ticket Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>number</td>\n<td>Unique identifier for the ticket</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td>Short title describing the issue (max 200 chars)</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>Optional detailed description of the issue</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Current status: <code>open</code>, <code>in_progress</code>, or <code>closed</code></td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>string</td>\n<td>Priority level: <code>low</code>, <code>medium</code>, or <code>high</code></td>\n</tr>\n<tr>\n<td><code>createdAt</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the ticket was created</td>\n</tr>\n<tr>\n<td><code>updatedAt</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of the last update</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"status--priority-values\">Status &amp; Priority Values</h2>\n<p><strong>Status:</strong> <code>open</code> · <code>in_progress</code> · <code>closed</code><br><strong>Priority:</strong> <code>low</code> · <code>medium</code> · <code>high</code></p>\n<hr>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK — request succeeded</td>\n</tr>\n<tr>\n<td>201</td>\n<td>Created — new ticket successfully created</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request — invalid or missing fields</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found — ticket does not exist</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable — server is not healthy</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"MiniTicketTracker API","slug":"minitickettracker-api"}],"owner":"19462161","collectionId":"35993fba-6917-4181-9441-edaf794ac929","publishedId":"2sBYHQ2iPa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-10-11T10:59:17.000Z"},"item":[{"name":"healthCheck","event":[{"id":"a24a8e55-b642-4d33-8edf-2cf0ebbb340f","listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response has correct Content-Type\", function () {","    pm.response.to.have.header(\"Content-Type\");","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Response body has status field\", function () {","    const json = pm.response.json();","    pm.expect(json).to.have.property(\"status\");","});","","pm.test(\"Status field is 'ok'\", function () {","    const json = pm.response.json();","    pm.expect(json.status).to.eql(\"ok\");","});","","pm.test(\"Response time is under 500ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(500);","});"]}}],"id":"9624b243-2728-4067-835a-6430dea52c14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mini-ticket-tracker.onrender.com/health","description":"<h2 id=\"health-check\">Health Check</h2>\n<p>Verifies that the service is up and running. This endpoint is typically used as a <strong>liveness probe</strong> to confirm the API server is reachable and operational.</p>\n<p>No authentication or request body is required.</p>\n<hr />\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><strong>Method:</strong> GET  </li>\n<li><strong>URL:</strong> <code>localhost:3000/health</code>  </li>\n<li><strong>Headers:</strong> None required  </li>\n<li><strong>Body:</strong> None</li>\n</ul>\n<hr />\n<h2 id=\"response\">Response</h2>\n<h3 id=\"200-ok\"><code>200 OK</code></h3>\n<p>Returned when the service is healthy and running.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Always <code>\"ok\"</code> when service is up</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Response Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"ok\"\n}\n</code></pre>\n<hr />\n<h3 id=\"error-responses\">Error Responses</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>503</code></td>\n<td>Service Unavailable — server is not healthy</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["health"],"host":["https://mini-ticket-tracker.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"daba92a2-22de-48e7-9bcc-9df353e1d4d5","name":"Success - Service Healthy","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:3000/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\"status\":\"ok\"}"},{"id":"7b9305b2-336a-4b58-abae-355442c30be2","name":"200 OK - Service Healthy","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:3000/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\"status\": \"ok\"}"},{"id":"2ce22a3a-7137-4c2d-83ad-17361e74141f","name":"503 Service Unavailable","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:3000/health"},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\"status\": \"unavailable\"}"}],"_postman_id":"9624b243-2728-4067-835a-6430dea52c14"},{"name":"createTicket","event":[{"listen":"test","script":{"id":"e91983e6-374b-4b1d-9115-f351f0698877","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response has correct Content-Type\", function () {","    pm.response.to.have.header(\"Content-Type\");","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Response body has required fields\", function () {","    const json = pm.response.json();","    pm.expect(json).to.have.property(\"id\");","    pm.expect(json).to.have.property(\"title\");","    pm.expect(json).to.have.property(\"status\");","    pm.expect(json).to.have.property(\"priority\");","    pm.expect(json).to.have.property(\"createdAt\");","});","","pm.test(\"id is a number\", function () {","    const json = pm.response.json();","    pm.expect(json.id).to.be.a(\"number\");","});","","pm.test(\"title matches request body\", function () {","    const requestBody = JSON.parse(pm.request.body.raw);","    const json = pm.response.json();","    pm.expect(json.title).to.eql(requestBody.title);","});","","pm.test(\"status is a valid value\", function () {","    const json = pm.response.json();","    pm.expect([\"open\", \"in_progress\", \"closed\"]).to.include(json.status);","});","","pm.test(\"priority is a valid value\", function () {","    const json = pm.response.json();","    pm.expect([\"low\", \"medium\", \"high\"]).to.include(json.priority);","});","","pm.test(\"createdAt is a valid ISO 8601 date\", function () {","    const json = pm.response.json();","    pm.expect(json.createdAt).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}/);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"2e07d22a-3ca6-4413-94fc-0dba3a719e2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"Dashboard takes too long to load\",\r\n  \"description\": \"The dashboard takes more than 10 seconds to load when displaying a large number of records.\",\r\n  \"priority\": \"medium\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mini-ticket-tracker.onrender.com/tickets","description":"<h2 id=\"create-ticket\">Create Ticket</h2>\n<p>Creates a new support ticket in the system. On success, returns the newly created ticket object with a <code>201 Created</code> status.</p>\n<hr />\n<h2 id=\"request-body\">Request Body</h2>\n<p>The request body must be sent as JSON (<code>Content-Type: application/json</code>).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Constraints</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>—</td>\n<td>Max 200 characters</td>\n<td>The title of the ticket</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>null</code></td>\n<td>—</td>\n<td>A detailed description of the issue</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"open\"</code></td>\n<td>One of: <code>open</code>, <code>in_progress</code>, <code>closed</code></td>\n<td>The current status of the ticket</td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"medium\"</code></td>\n<td>One of: <code>low</code>, <code>medium</code>, <code>high</code></td>\n<td>The priority level of the ticket</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"Unable to log in\",\n  \"description\": \"The user receives an authentication error...\",\n  \"status\": \"open\",\n  \"priority\": \"high\"\n}\n</code></pre>\n<p><strong>Minimal Request Body (only required field):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"Unable to log in\"\n}\n</code></pre>\n<hr />\n<h2 id=\"response\">Response</h2>\n<h3 id=\"201-created\"><code>201 Created</code></h3>\n<p>Returns the newly created ticket object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Nullable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>number</td>\n<td>No</td>\n<td>Auto-generated, auto-incrementing unique ID of the ticket</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td>No</td>\n<td>The title of the ticket (max 200 characters)</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The description of the ticket — <code>null</code> if not provided</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>No</td>\n<td>The status of the ticket — one of <code>open</code>, <code>in_progress</code>, <code>closed</code></td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>string</td>\n<td>No</td>\n<td>The priority level — one of <code>low</code>, <code>medium</code>, <code>high</code></td>\n</tr>\n<tr>\n<td><code>createdAt</code></td>\n<td>string (ISO 8601)</td>\n<td>No</td>\n<td>Timestamp (with timezone) of when the ticket was created</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Response Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 3,\n  \"title\": \"Update customer profile\",\n  \"description\": null,\n  \"status\": \"open\",\n  \"priority\": \"medium\",\n  \"createdAt\": \"2026-10-11T09:23:40.041Z\"\n}\n</code></pre>\n","urlObject":{"path":["tickets"],"host":["https://mini-ticket-tracker.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"335b9b66-4ddb-4d60-8498-a857d145aba4","name":"201 Created - Full Ticket","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Unable to log in\",\n  \"description\": \"The user receives an authentication error when trying to log in with valid credentials.\",\n  \"status\": \"open\",\n  \"priority\": \"high\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"id\": 1,\\n  \"title\": \"Unable to log in\",\\n  \"description\": \"The user receives an authentication error when trying to log in with valid credentials.\",\\n  \"status\": \"open\",\\n  \"priority\": \"high\",\\n  \"createdAt\": \"2026-10-11T09:23:40.041Z\"\\n}"},{"id":"305aaa5a-7e23-455e-9470-2f7b7b341b64","name":"201 Created - Minimal","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Button not responding\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"id\": 2,\\n  \"title\": \"Button not responding\",\\n  \"description\": null,\\n  \"status\": \"open\",\\n  \"priority\": \"medium\",\\n  \"createdAt\": \"2026-10-11T09:25:00.000Z\"\\n}"},{"id":"340abf7d-c55a-4ab2-be43-74fce27c2eb8","name":"400 Bad Request - Missing Title","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"No title provided\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"error\": \"title is required\"\\n}"}],"_postman_id":"2e07d22a-3ca6-4413-94fc-0dba3a719e2a"},{"name":"getTickets","id":"c8936ee5-b421-4c08-8b73-aa2e8c5788dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"Unable to log in\",\r\n  \"description\": \"The user receives an authentication error when attempting to log in.\",\r\n  \"status\": \"open\",\r\n  \"priority\": \"high\"\r\n}"},"url":"https://mini-ticket-tracker.onrender.com/tickets","urlObject":{"path":["tickets"],"host":["https://mini-ticket-tracker.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"e9fc51c1-fba9-4373-badb-e5ea33be7c06","name":"200 OK - Default Page and Limit","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"localhost:3000/tickets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\"page\":1,\"limit\":10,\"total\":3,\"data\":[{\"id\":1,\"title\":\"Unable to log in\",\"description\":\"The user receives an authentication error when trying to log in with valid credentials.\",\"status\":\"open\",\"priority\":\"high\",\"createdAt\":\"2026-10-11T09:00:00.000Z\"},{\"id\":2,\"title\":\"Button not responding\",\"description\":null,\"status\":\"open\",\"priority\":\"medium\",\"createdAt\":\"2026-10-11T09:10:00.000Z\"},{\"id\":3,\"title\":\"Update customer profile\",\"description\":null,\"status\":\"in_progress\",\"priority\":\"medium\",\"createdAt\":\"2026-10-11T09:23:40.041Z\"}]}"},{"id":"65735529-e036-43ba-a416-676a028b83a7","name":"200 OK - Filter by Status (open)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"localhost:3000/tickets?status=open","host":["localhost"],"port":"3000","path":["tickets"],"query":[{"key":"status","value":"open"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\"page\":1,\"limit\":10,\"total\":2,\"data\":[{\"id\":1,\"title\":\"Unable to log in\",\"description\":\"The user receives an authentication error when trying to log in with valid credentials.\",\"status\":\"open\",\"priority\":\"high\",\"createdAt\":\"2026-10-11T09:00:00.000Z\"},{\"id\":2,\"title\":\"Button not responding\",\"description\":null,\"status\":\"open\",\"priority\":\"medium\",\"createdAt\":\"2026-10-11T09:10:00.000Z\"}]}"},{"id":"2c131f80-3941-4087-9f0e-491698c10768","name":"200 OK - Pagination (page=2, limit=5)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"localhost:3000/tickets?page=2&limit=5","host":["localhost"],"port":"3000","path":["tickets"],"query":[{"key":"page","value":"2"},{"key":"limit","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\"page\":2,\"limit\":5,\"total\":8,\"data\":[{\"id\":6,\"title\":\"App crashes on startup\",\"description\":null,\"status\":\"open\",\"priority\":\"high\",\"createdAt\":\"2026-10-11T10:00:00.000Z\"},{\"id\":7,\"title\":\"Dark mode not saving\",\"description\":null,\"status\":\"closed\",\"priority\":\"low\",\"createdAt\":\"2026-10-11T10:05:00.000Z\"},{\"id\":8,\"title\":\"Export to CSV broken\",\"description\":null,\"status\":\"open\",\"priority\":\"medium\",\"createdAt\":\"2026-10-11T10:10:00.000Z\"}]}"},{"id":"da3d11d5-1128-449d-9a22-6b3e4c6e1718","name":"200 OK - Status Filter + Pagination (status=in_progress, page=1, limit=10)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"localhost:3000/tickets?status=in_progress&page=1&limit=10","host":["localhost"],"port":"3000","path":["tickets"],"query":[{"key":"status","value":"in_progress"},{"key":"page","value":"1"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\"page\":1,\"limit\":10,\"total\":1,\"data\":[{\"id\":3,\"title\":\"Update customer profile\",\"description\":null,\"status\":\"in_progress\",\"priority\":\"medium\",\"createdAt\":\"2026-10-11T09:23:40.041Z\"}]}"}],"_postman_id":"c8936ee5-b421-4c08-8b73-aa2e8c5788dd"},{"name":"getTicketStats","id":"858afd5b-2c65-4487-aa2f-736114f42555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mini-ticket-tracker.onrender.com/tickets/stats","description":"<h2 id=\"get-ticket-statistics\">Get Ticket Statistics</h2>\n<p>Retrieves a summary of ticket counts grouped by their current status.</p>\n<p><strong>Method:</strong> <code>GET</code>\n<strong>URL:</strong> <code>localhost:3000/tickets/stats</code></p>\n<hr />\n<h3 id=\"request\">Request</h3>\n<p>No request body or query parameters are required.</p>\n<hr />\n<h3 id=\"response\">Response</h3>\n<p>Returns a JSON object with the count of tickets in each status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>open</code></td>\n<td>integer</td>\n<td>Number of tickets currently open</td>\n</tr>\n<tr>\n<td><code>in_progress</code></td>\n<td>integer</td>\n<td>Number of tickets currently in progress</td>\n</tr>\n<tr>\n<td><code>closed</code></td>\n<td>integer</td>\n<td>Number of tickets that have been closed</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"open\": 3,\n  \"in_progress\": 0,\n  \"closed\": 0\n}\n</code></pre>\n","urlObject":{"path":["tickets","stats"],"host":["https://mini-ticket-tracker.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"8ec772e5-af3c-41e9-8a0d-b64cd76acaa2","name":"200 OK - Ticket Stats","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"localhost:3000/tickets/stats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\"open\":3,\"in_progress\":0,\"closed\":0}"}],"_postman_id":"858afd5b-2c65-4487-aa2f-736114f42555"},{"name":"updateTicket","id":"ce60e475-4e64-4950-8de3-3d0e6b1d6f1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"closed\",\r\n  \"priority\": \"high\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mini-ticket-tracker.onrender.com/tickets/1","description":"<h2 id=\"update-ticket\">Update Ticket</h2>\n<p>Updates the details of an existing ticket by its ID.</p>\n<p><strong>Method:</strong> PATCH<br /><strong>URL:</strong> <code>localhost:3000/tickets/:id</code></p>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>number</td>\n<td>Yes</td>\n<td>The ID of the ticket to update</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"request-body-json\">Request Body (JSON)</h3>\n<p>At least one field must be provided. All fields are optional, but the request will be rejected if neither is included.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>No</td>\n<td>The new status of the ticket. Allowed values: <code>open</code>, <code>in_progress</code>, <code>closed</code></td>\n</tr>\n<tr>\n<td>priority</td>\n<td>string</td>\n<td>No</td>\n<td>The new priority of the ticket. Allowed values: <code>low</code>, <code>medium</code>, <code>high</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> The request body uses strict validation — no extra fields are allowed.</p>\n</blockquote>\n<h3 id=\"responses\">Responses</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Ticket updated successfully</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request – invalid fields, unknown fields, or no fields provided</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Ticket not found</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["tickets","1"],"host":["https://mini-ticket-tracker.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"7208fa5d-3382-45da-828d-4e26cb4d493f","name":"Update Status Only - 200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"status\": \"closed\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"id\": 10,\\n  \"status\": \"closed\",\\n  \"priority\": \"medium\",\\n  \"updatedAt\": \"2026-10-11T10:00:00.000Z\"\\n}"},{"id":"fedbb278-5c5c-4c61-b603-c144d2c3e633","name":"Update Priority Only - 200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"priority\": \"high\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"id\": 10,\\n  \"status\": \"open\",\\n  \"priority\": \"high\",\\n  \"updatedAt\": \"2026-10-11T10:00:00.000Z\"\\n}"},{"id":"ed7343dc-f99c-4c34-a721-32d21ff5bff9","name":"Update Status and Priority - 200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"status\": \"in_progress\", \"priority\": \"medium\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\\n  \"id\": 10,\\n  \"status\": \"in_progress\",\\n  \"priority\": \"medium\",\\n  \"updatedAt\": \"2026-10-11T10:00:00.000Z\"\\n}"},{"id":"88b94d85-66ef-41a5-af1e-be309154b685","name":"Ticket Not Found - 404","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"status\": \"closed\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/9999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\"error\": \"Ticket not found\"}"},{"id":"1b4130bb-193a-4a6d-a65a-342cc493a09f","name":"Invalid Status Value - 400 Bad Request","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"status\": \"resolved\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\"error\": \"Invalid value for 'status'. Allowed values: open, in_progress, closed\"}"},{"id":"5e743b9d-72c3-49df-84b7-e594bece4baf","name":"Invalid Priority Value - 400 Bad Request","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"priority\": \"urgent\"}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\"error\": \"Invalid value for 'priority'. Allowed values: low, medium, high\"}"},{"id":"363ef75c-8d65-44a3-a458-d77f8d583543","name":"Empty Body - 400 Bad Request","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/tickets/10"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\"error\": \"Request body must contain at least one field to update\"}"}],"_postman_id":"ce60e475-4e64-4950-8de3-3d0e6b1d6f1c"}],"event":[{"listen":"prerequest","script":{"id":"6e873992-1429-4bae-a622-208e9d5a4204","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"a925c5e4-7d8a-4777-9c10-172a141ccde6","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://mini-ticket-tracker.onrender.com"}]}