Appearance
Product SDK Settings
Read and update per-product SDK behavior settings (currently the deactivation-feedback modal toggle).
GET /v1/settings/products/sdk?product_id=prd_xxx
PATCH /v1/settings/products/sdkGet settings
GET /v1/settings/products/sdk?product_id=prd_xxx| Parameter | Required | Description |
|---|---|---|
product_id | Yes | Product ID (query parameter) |
json
{
"data": {
"deactivationModal": false
}
}Products without stored settings return the defaults shown above.
Update settings
PATCH /v1/settings/products/sdkjson
{
"product_id": "prd_xxx",
"deactivationModal": true
}| Field | Required | Type | Description |
|---|---|---|---|
product_id | Yes | string | Product ID |
deactivationModal | No | boolean | Show the uninstall-feedback modal in the WordPress SDK |
json
{
"data": {
"message": "Product SDK settings updated"
}
}Example
bash
curl -X PATCH "https://api.packedge.dev/v1/settings/products/sdk" \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"product_id": "prd_xxx",
"deactivationModal": true
}'