---
title: "Set WVC plan data for a website"
method: POST
path: "/v1/hosting/websites/{website_id}/set-wvc-plan-data"
tags: ["Vibe Coding"]
---

# Set WVC plan data for a website

`POST /v1/hosting/websites/{website_id}/set-wvc-plan-data`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/hosting/websites/{website_id}/set-wvc-plan-data`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/hosting/websites/:website_id/set-wvc-plan-data/post.ts> (a function with typed inputs; its response is checked against the schema)

Activates the WordPress Vibe Coding (WVC) plan on a website by writing the
`wvc_plan_data` option directly to WordPress via WP-CLI. This sets a
`WVC monthly` plan with a 2-day trial period starting from
today's date.

Call this endpoint before triggering WVC generation on an existing website to
ensure the correct plan is in place.

**Request body fields:**

- `option_name` — Must be `wvc_plan_data`.
- `option_value.plan_title` — The name of the WVC plan displayed in the editor.
- `option_value.trial_data.trial_period` — Duration of the trial in days.
- `option_value.trial_data.hosting_trial_expire_date` — The date and time the trial expires (YYYY-MM-DD HH:MM:SS).
- `option_value.timezone` — The website's timezone as a UTC offset (e.g. `UTC+0`, `UTC+4`, `UTC-5`).
- `option_value.upgrade_url` — Optional. When provided, the editor will use it as the upgrade link for this specific website instead of the default upgrade URL.

**⚠️ Service Requirement:**
This feature requires the WordPress Vibe Coding (WVC) service to be enabled for your account.
If the WVC service is not enabled, this feature will be unavailable and API requests may return
an error response. Please contact support to enable this service.

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `option_name` string, required: The WordPress option name to set.
  - `option_value` object, required: The WVC plan data to store as the option value.
    - `plan_title` string, required: The title of the WVC plan. Use `"WVC monthly"` for hosted plans, or `"Builder WVC self hosted monthly"` for self-hosted (API key-based) installations.
    - `trial_data` object, required: Trial period configuration.
      - `trial_period` integer, required: Duration of the trial period in days.
      - `hosting_trial_expire_date` string, date-time, required: The date and time when the hosting trial expires (YYYY-MM-DD HH:MM:SS).
    - `timezone` string, required: The timezone of the website as a UTC offset (e.g. `"UTC+0"`, `"UTC+4"`, `"UTC-5"`).
    - `upgrade_url` string, uri: Optional custom upgrade URL for this specific website. When provided, WVC will use it instead of the default upgrade URL.

## Response `200`

WVC plan data set successfully

- object
  - `status` string
  - `data` object
    - `message` string

## Other responses

- `400`: Bad request
- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
