Creates a new grievance in the Xata database
title, description, category, and user_id. The user must exist in the system, otherwise a 404 error is returned.
The grievance is created with a default status of “pending” and timestamps are automatically generated. Additional fields like priority, cpgrams_category, reformed_top_level_category, reformed_last_level_category, and reformed_flag can be provided as needed.
The response includes the ID of the created grievance and a status message indicating successful creation.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Grievance to add to the system
Title of the grievance
Detailed description of the grievance
Category of the grievance
ID of the user submitting the grievance
Priority level: low, medium, high, critical
CPGRAMS category of the grievance
Top level category in the reformed classification
Last level category in the reformed classification
Flag indicating if the grievance is part of reformed process
Grievance created successfully
ID of the created grievance
Status message
Title of the grievance
Description of the grievance
Priority level of the grievance
ID of the user who submitted the grievance
CPGRAMS category of the grievance