Skip to main content
POST
/
releases
/
{id}
/
feedback
Add Feedback to Release
curl --request POST \
  --url https://api.royalti.io/releases/{id}/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Great track! The production quality is excellent. Consider adjusting the mix on the bridge section.",
  "isInternal": false,
  "fromUserId": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
  "success": true,
  "message": "Feedback added successfully",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantId": 123,
    "ReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "comment": "<string>",
    "status": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

This endpoint allows users to add feedback to a release. Admins can add internal feedback that is only visible to other admins. API Key Support: When using API keys, you can optionally specify a fromUserId to attribute the feedback to a specific user in the workspace. The specified user must exist, be active, and have access to the release.

Code Examples

const response = await fetch('https://api.royalti.io/releases/example-id/feedback', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "message": "sample-message",
    "isInternal": true,
    "fromUserId": "sample-fromUserId"
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Release ID

Body

application/json
message
string
required

Feedback message

isInternal
boolean
default:false

Whether the feedback is internal (admin only)

fromUserId
string<uuid>

Optional: TenantUserId to attribute the feedback to. If not provided, defaults to the authenticated user. The specified user must exist in the workspace, be active, and have access to the release.

Response

Success

success
boolean
Example:

true

message
string
Example:

"Feedback added successfully"

data
object