true in the status path segment to activate the app, or any other value to deactivate it. When the app is not yet installed for the site, it is first installed in a deactivated state and then the requested action is applied.code describing the outcome:code | Meaning |
|---|---|
| 0 | Error — app not found |
| 1 | App activated |
| 2 | Settings required — the app must be configured before it can be activated |
| 3 | App deactivated |
| 4 | Payment required — the app has not been purchased or renewed |
200; the settings required (2) and payment required (4) cases return HTTP 400. Branch on status/code, not only on the HTTP status.curl --location --globoff 'https://.daftara.com/v2/api/app-manager/activate/123/true' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"status": true,
"code": 0,
"msg": "App activated successfully"
}