Manage component

View as Markdown
Activates or deactivates one plugin or theme on the selection. The action is explicit, never a flip: one `manager.activate`/`manager.deactivate` Site Action per accepted site.\n\nBody parameters:\n- `sites` (integer array, required): exact ids, 1 to 200.\n- `action` (string, required): `activate` | `deactivate`.\n\n202 with the created `site-actions` documents and `meta.skipped`.\n\n- **422**: `sites` missing/empty/over 200/unknown id; `action` outside `activate`/`deactivate`.\n- **404**: `{component}` does not exist or is not reachable from the token's organization.\n- **403**: a read-only token.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

componentstringRequired

Request

This endpoint expects an object.
siteslist of integersRequired
actionstringRequired

Response

Successful response