`PUT /api/marketplace/items/{id}/rating` — create/update the workspace's rating (install-gated + validated in the service).
PUT
/api/marketplace/items/{id}/rating
const url = 'https://example.com/api/marketplace/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rating';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"comment":"example","stars":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/marketplace/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rating \ --header 'Content-Type: application/json' \ --data '{ "comment": "example", "stars": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Upsert body — the workspace’s star rating (1..=5) + optional short comment.
object
comment
string | null
stars
required
integer format: int32
Examplegenerated
{ "comment": "example", "stars": 1}Responses
Section titled “Responses”Media typeapplication/json
ADR 0034 #351 — a customer (buyer/installer) star rating + optional short
comment for a marketplace item. One row per (item_id, workspace_id); only a
workspace that has installed the item may rate it (enforced in the service).
ORTHOGONAL to MarketplaceItemReview (the owner-gated moderation gate).
object
comment
string | null
created_at
required
string format: date-time
id
required
string format: uuid
item_id
required
string format: uuid
stars
required
integer format: int32
updated_at
required
string format: date-time
Examplegenerated
{ "comment": "example", "created_at": "2026-04-15T12:00:00Z", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "item_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "stars": 1, "updated_at": "2026-04-15T12:00:00Z"}