Appearance
Set Stable Release
Make a published release the product's stable release — the version the WordPress update-check hands out. Also used to roll back to an older version.
POST /v1/products/:id/releases/:releaseId/stablePath Parameters
| Parameter | Description |
|---|---|
id | Product ID |
releaseId | Release ID |
Response
json
{
"data": {
"message": "Stable release updated"
}
}Example
bash
curl -X POST "https://api.packedge.dev/v1/products/prd_xxx/releases/rel_xxx/stable" \
-H "Authorization: Bearer pk_your_api_key"Notes
- Only a
publishedrelease can be set as stable (400otherwise) - There is exactly one stable release per product — the previous one is unset automatically
- The edge cache for the update-check endpoint is busted so customers see the change immediately
