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"
}
}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"
}
}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.
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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Release ID
Feedback message
Whether the feedback is internal (admin only)
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.