/services/websites/v1/menus/clone
Auth
Deep-copies the menu post + its `code` JSON. Idempotent by `base_post_id`: re-running returns the existing clone with refreshed `code` instead of duplicating.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
source_project_id |
integer | Yes | 102907 |
|
target_project_id |
integer | Yes | 104449 |
|
source_menu_id |
integer | Yes | 151117 |
|
new_title |
string|null
max: 255 |
No | Override the menu's post_title (else copies source's). | |
force_new |
boolean|null | No | Default false (idempotent). Set true to create a fresh clone alongside any existing one (rare — usually you want refresh). |
{
"error": false,
"message": "string",
"data": {
"menu": {
"id": 0,
"base_post_id": 0,
"posts_id": 0,
"post_title": "string",
"post_name": "string"
},
"action": "string"
}
}