Skip to content
Select themeSelect language

`PUT /api/marketplace/items/{id}/rating` — create/update the workspace's rating (install-gated + validated in the service).

PUT
/api/marketplace/items/{id}/rating
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 }'
id
required
string format: uuid
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
}
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"
}