Feedback

The feedback resource.

Basehttps://rest.carbon.ms/feedback
GET/feedback

List feedbacks

Retrieve a paginated list of feedbacks. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/feedback
curl --request GET \
  --url 'https://rest.carbon.ms/feedback?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "location": "string",
    "feedback": "string",
    "userId": "xyz789",
    "attachmentPath": "string"
  }
]
GET/feedback

Retrieve a feedback

Fetch a single feedback by filtering on `id`.

Query parameters

idstring

Match on the feedback's `id`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/feedback
curl --request GET \
  --url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "location": "string",
  "feedback": "string",
  "userId": "xyz789",
  "attachmentPath": "string"
}
POST/feedback

Create a feedback

Create a new feedback.

Body parameters

locationstringrequired
userIdstring

References user.id

feedbackstringrequired
attachmentPathstring
POSThttps://rest.carbon.ms/feedback
curl --request POST \
  --url https://rest.carbon.ms/feedback \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"location":"string","feedback":"string"}'
Response
{
  "id": "abc123def456",
  "location": "string",
  "feedback": "string",
  "userId": "xyz789",
  "attachmentPath": "string"
}
PATCH/feedback

Update a feedback

Update an existing feedback, matched on `id`.

Body parameters

locationstringrequired
userIdstring

References user.id

feedbackstringrequired
attachmentPathstring
PATCHhttps://rest.carbon.ms/feedback
curl --request PATCH \
  --url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"location":"string"}'
Response
{
  "id": "abc123def456",
  "location": "string",
  "feedback": "string",
  "userId": "xyz789",
  "attachmentPath": "string"
}
DELETE/feedback

Delete a feedback

Delete a feedback, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the feedback to delete, e.g. `eq.{id}`.

DELETEhttps://rest.carbon.ms/feedback
curl --request DELETE \
  --url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content