---
title: Update WordPress Items
description: Queues an update operation for one or more WordPress plugins, themes, or core on the specified site. Asynchronous — returns 202 with an operation UUID that can be polled for…
url: "https://betterdocs.shahrear.msf.bd/index.php/docs/hell0-boys-docs/hell0-boys/wordpress-actions/update-wordpress-items/"
updated: "2026-08-20"
category: hell0 boys / WordPress Actions
---

# Update WordPress Items

POST`/sites/{uuid}/wordpress/update`

## Code Samples

```curl

                curl --request POST \
  --url 'https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
}'

                const response = await fetch('https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
})
});

const data = await response.json();
console.log(data);

                import requests

headers = {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
}

payload = {
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
}

response = requests.post("https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update", headers=headers, json=payload)

print(response.json())

                <?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
  'Authorization: Bearer YOUR_TOKEN',
  'Content-Type: application/json'
  ],
  CURLOPT_POSTFIELDS => '{
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
}',
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;

                using System.Net.Http;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update");
request.Headers.Add("Authorization", "Bearer YOUR_TOKEN");
request.Content = new StringContent(@"{
    ""type"": ""plugin"",
    ""slugs"": [
        ""woocommerce"",
        ""yoast-seo""
    ],
    ""backup_before_update"": false
}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);

                import java.net.URI;
import java.net.http.*;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/update"))
    .header("Authorization", "Bearer YOUR_TOKEN")
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
}
"""))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Response

```json

                {
    "success": true,
    "message": "WordPress update queued.",
    "data": {
        "operation": {
            "uuid": "8c5d7e8a-1234-4abc-9def-1234567890ab",
            "status": "queued",
            "operation_type": "update"
        },
        "queued_items": [
            {
                "slug": "woocommerce",
                "title": "WooCommerce",
                "type": "plugin",
                "current_version": "8.3.1",
                "available_version": "8.5.0"
            }
        ],
        "skipped_items": [
            {
                "slug": "yoast-seo",
                "reason": "no_update_available"
            }
        ],
        "backup_before_update": false
    }
}

                {
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}

                {
    "success": false,
    "message": "This action is unauthorized. Your token is missing the required scope.",
    "data": null
}

                {
    "success": false,
    "message": "Not found.",
    "data": null
}

                {
    "success": false,
    "message": "The given data was invalid.",
    "data": null,
    "errors": {
        "domain": [
            "The domain field is required when mode is live."
        ]
    }
}
```

Queues an update operation for one or more WordPress plugins, themes, or core on the specified site. Asynchronous — returns 202 with an operation UUID that can be polled for completion (operation tracking endpoints land in a later PR). Items already updating or with no update available are reported under `skipped_items`. Requires the `write:sites` scope and the `site:manage-update` [Team](https://betterdocs.shahrear.msf.bd/encyclopedia/team/) permission.

## Path Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `uuid` | string (uuid) | **Required** | UUID of the site |

## Request Body

Content type: `application/json` — **required**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | string | **Required** | Allowed: plugin, theme, core |
| `slugs` | array of string | Optional | Optional list of \`item_name\` values to update. If omitted, every updatable item of the requested type is queued. |
| `backup_before_update` | boolean | Optional | When true and the site has remote (cloud) backup settings configured, a pre-update backup is taken before the update runs. |

```json

                {
    "type": "plugin",
    "slugs": [
        "woocommerce",
        "yoast-seo"
    ],
    "backup_before_update": false
}
```

## Responses

### 202 — Update queued for asynchronous processing

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | Optional |  |
| `message` | string | Optional |  |
| `data` | object | Optional |  |
| `data` | object | Optional |  |
| `data.operation` | object | **Required** |  |
| `data.operation.uuid` | string (uuid) | **Required** |  |
| `data.operation.status` | string | **Required** | Allowed: queued, running, completed, failed |
| `data.operation.operation_type` | string | **Required** |  |
| `data.queued_items` | array of object | **Required** |  |
| `data.skipped_items` | array of object | **Required** |  |
| `data.backup_before_update` | boolean | **Required** |  |

```json

                {
    "success": true,
    "message": "WordPress update queued.",
    "data": {
        "operation": {
            "uuid": "8c5d7e8a-1234-4abc-9def-1234567890ab",
            "status": "queued",
            "operation_type": "update"
        },
        "queued_items": [
            {
                "slug": "woocommerce",
                "title": "WooCommerce",
                "type": "plugin",
                "current_version": "8.3.1",
                "available_version": "8.5.0"
            }
        ],
        "skipped_items": [
            {
                "slug": "yoast-seo",
                "reason": "no_update_available"
            }
        ],
        "backup_before_update": false
    }
}
```

### 401 — Missing or invalid authentication token

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | Optional |  |
| `message` | string | Optional |  |
| `data` | object | Optional |  |

```json

                {
    "success": false,
    "message": "Unauthenticated.",
    "data": null
}
```

### 403 — Token lacks the required scope

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | Optional |  |
| `message` | string | Optional |  |
| `data` | object | Optional |  |

```json

                {
    "success": false,
    "message": "This action is unauthorized. Your token is missing the required scope.",
    "data": null
}
```

### 404 — Resource not found or not accessible to your [Team](https://betterdocs.shahrear.msf.bd/encyclopedia/team/)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | Optional |  |
| `message` | string | Optional |  |
| `data` | object | Optional |  |

```json

                {
    "success": false,
    "message": "Not found.",
    "data": null
}
```

### 422 — Request validation failed

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | boolean | Optional |  |
| `message` | string | Optional |  |
| `data` | object | Optional |  |
| `errors` | object | Optional |  |

```json

                {
    "success": false,
    "message": "The given data was invalid.",
    "data": null,
    "errors": {
        "domain": [
            "The domain field is required when mode is live."
        ]
    }
}
```
