Add message to an issue
POST/company/issues/:id
Add a new message and/or files to an existing ticket. Allows up to 2 attachments (see implementation in routes.js).
Use cases:
- Respond to a support ticket
- Provide additional information about an issue
- Attach relevant documents (invoices, photos, etc.)
Related logic: ctrl.saveMessage() in routes.js with multerS3 middleware
Request
Responses
- 200
- 400
- 401
- 404
Incident updated successfully. Returns the complete details of the incident with the new message.
Invalid data. Possible causes:
- Missing or too short/long message
- Too many attachments (>2)
- File type/size not allowed
Unauthorized. The JWT token is invalid or has expired. Include a valid token in the Authorization header.
Incident not found.
Verify that the provided ID is correct and belongs to the company.