Appearance
Bulk License Actions
Apply one action to many licenses in a single request.
POST /v1/licenses/bulkRequest Body
json
{
"ids": ["lic_xxx", "lic_yyy"],
"action": "extend",
"extendDays": 30
}| Field | Required | Type | Description |
|---|---|---|---|
ids | Yes | string[] | License IDs to act on |
action | Yes | string | One of revoke, suspend, activate, extend |
extendDays | For extend | number | Days to push each expiry forward (must be positive) |
Actions
revoke— set status torevokedsuspend— set status tosuspendedactivate— set status toactiveextend— pushexpiresAtforward byextendDays; licenses without an expiry getNOW() + extendDays
Response
json
{
"data": {
"affected": 2
}
}| Field | Description |
|---|---|
affected | How many of the given licenses were actually updated. |
Example
bash
curl -X POST "https://api.packedge.dev/v1/licenses/bulk" \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"ids": ["lic_xxx", "lic_yyy"],
"action": "revoke"
}'Notes
- Every action busts the per-license edge cache so the change is served immediately
- IDs that don't belong to your account are silently skipped (reflected in the
affectedcount)
