Skip to content

Run Copilot Landing Page Action

POST
/copilot/landing-page-action

Add, remove, reorder or AI-edit a landing page’s sections. edit_section SPENDS CREDIT.

add_section, remove_section and reorder_sections are deterministic. Returns the updated page.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

A section-level change to a landing page. edit_section SPENDS CREDIT.

object
action_type
required
string
Allowed values: edit_section add_section remove_section reorder_sections
instruction
Any of:
string
landing_page_id
required
string
new_order
Any of:
Array<integer>
new_section_type
Any of:
string
section_idx
Any of:
integer
selected_text
Any of:
string

Responses

200

Successful Response

object
data
required

One Studio object, open-shaped. See the module docstring.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string