Skip to main content
PUT
/
sites
/
environments
/
{env_id}
/
themes
/
bulk-update
Bulk update WP Site themes
curl --request PUT \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/themes/bulk-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "themes": [
    {
      "name": "twenty-twenty-three"
    }
  ]
}
'
{
  "message": "Bulk-updating WordPress themes in progress",
  "status": 202,
  "operation_id": "wp-themes:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

env_id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
themes
object[]
required

Response

Successfully updated WP themes

message
string
required
Example:

"Bulk-updating WordPress themes in progress"

status
number
required
Example:

202

operation_id
string
Example:

"wp-themes:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1"