Add Proposal Comment

POST/api/proposal-comments

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
proposal_id number Mandatory Proposal ID
description string Mandatory Comment content
created_by number optional Optional RISE user ID (commenter). Default: 1. Use for proper attribution.
curl -X POST "https://yoursite.com/api/proposal-comments" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "proposal_id": "...", "description": "..." }'

Success-Response:

HTTP/1.1 201 Created
{
  "status": 200,
  "messages": {"success": "Comment added successfully."},
  "id": 1
}

Error-Response:

HTTP/1.1 400 Bad Request
{ "status": false, "messages": { "error": "Failed to add comment." } }
MethodPOST
Path/api/proposal-comments
GroupProposal Comments
Sincev1.0.0
Defined inRestApi/Controllers/ProposalCommentsController.php