Find WordPress in sites' folders and attach it; with server_id, every site on that server (server.manage)
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/wordpress/discoverFind WordPress in sites' folders and attach it; with server_id, every site on that server (server.manage)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
- no other properties
server_idstring optional
Example
{
"server_id": "string"
}Responses
200 Result
Content type: application/json
object
scannedinteger requiredfoundinteger requiredattachedarray<string> | null requiredalreadyinteger requiredskippedarray<object> | null requiredsite_idstring requiredhostnamestring requiredreasonstring required
Example
{
"scanned": 0,
"found": 0,
"attached": [
"string"
],
"already": 0,
"skipped": [
{
"site_id": "string",
"hostname": "string",
"reason": "string"
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required