Skip to main content
PUT
Update feedback

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Feedback ID

Body

application/json

Whitelist-enforced update — only rating, comment, status, response, and email are accepted. Any other field is silently dropped.

rating
integer

Updated rating value.

Required range: 1 <= x <= 5
comment
string

Updated feedback text.

status
enum<string>

Updated status. Use deleted to soft-delete.

Available options:
active,
deleted
response
string

Admin response visible to the user.

email
string

Respondent email address. Leading and trailing spaces are removed; an empty string clears it; anything else must be a valid address or the call returns 400 "Enter a valid email address."

Response

Feedback updated successfully

success
boolean
Example:

true

message
string

Success message

Example:

"User institution deleted successfully"