Endpoint
Authentication
Requires authentication withticket:write permission.
Request Body
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string (UUID) | Yes | ID of the user creating the ticket |
status | string | No | Initial status (default: PENDING) |
category | string | Yes | Ticket category (see valid values below) |
title | string | No | Short title/summary (max 120 chars, default: “Untitled”) |
description | string | Yes | Detailed description of the issue |
attachments | string[] | No | Array of attachment URLs |
notes | string | No | Initial notes/comments about the ticket |
Valid Categories
MAINTENANCE- Building maintenance and repairsSECURITY- Security-related issues and concernsCLEANING- Cleaning and sanitation requestsWASTE- Waste management and disposalELECTRICITY- Electrical issues and repairsWATER- Water supply and plumbing issuesGAS- Gas supply and safety concernsINTERNET- Internet connectivity and IT issuesOTHER- Miscellaneous requests
Request Example
Response
Success Response (201)
Error Response (400)
Error Response (401)
Error Response (403)
Error Response (404)
Notes
- New tickets are created with
PENDINGstatus by default unless specified - The
titlefield defaults to “Untitled” if not provided (max 120 characters) - The
assignedTofield is initiallynull - Both
createdAtandupdatedAttimestamps are set to the current time - The
userIdmust reference a valid user in the system - The
notesfield is a single text string, not an array - Attachment URLs should be valid and accessible
- Use the Assign Ticket endpoint to assign the ticket to a technician