curl --request PATCH \
--url https://api.scalev.com/v3/chatgpt/pages/{page_id}/html-mode/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_html": "<main><h1>Launch offer</h1><a href=\"#order\">Buy now</a></main>",
"agent_css": "main { max-width: 960px; margin: 0 auto; }",
"agent_js": "const data = window.Scalev.data.get();",
"agent_csp_policy": {
"img_src": [
"https://cdn.example.com"
]
}
}
'{
"page_id": 123,
"page_display_id": 123,
"version": 123,
"render_mode": "agent_html",
"draft_url": "<string>",
"agent_csp_policy": {
"connect_src": [
"<string>"
],
"img_src": [
"<string>"
],
"script_src": [
"<string>"
],
"style_src": [
"<string>"
],
"frame_src": [
"<string>"
]
},
"validation_warnings": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
]
}Validates and creates an unpublished page display draft version only. This endpoint never publishes; publishing remains dashboard-owned. Use only selected store, product, and bundle price option context from page context.
curl --request PATCH \
--url https://api.scalev.com/v3/chatgpt/pages/{page_id}/html-mode/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_html": "<main><h1>Launch offer</h1><a href=\"#order\">Buy now</a></main>",
"agent_css": "main { max-width: 960px; margin: 0 auto; }",
"agent_js": "const data = window.Scalev.data.get();",
"agent_csp_policy": {
"img_src": [
"https://cdn.example.com"
]
}
}
'{
"page_id": 123,
"page_display_id": 123,
"version": 123,
"render_mode": "agent_html",
"draft_url": "<string>",
"agent_csp_policy": {
"connect_src": [
"<string>"
],
"img_src": [
"<string>"
],
"script_src": [
"<string>"
],
"style_src": [
"<string>"
],
"frame_src": [
"<string>"
]
},
"validation_warnings": [
{
"severity": "warning",
"code": "head_content_not_allowed",
"field": "agent_html",
"message": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.scalev.com/llms.txt
Use this file to discover all available pages before exploring further.
OAuth access tokens are rate-limited per OAuth application and merchant installation.
Numeric Scalev page ID.
Body-only HTML Mode payload. Do not include head, meta, title, favicon, crawler, domain, credential, cookie, token, or private backend behavior.
Body-only HTML. Do not include doctype, html, body, head, meta, link, title, favicon, SEO, crawler, or domain settings.
204800102400JavaScript must use documented window.Scalev runtime APIs only.
102400Supported Agent HTML CSP keys. Unsupported keys are rejected.
Show child attributes
Unpublished draft metadata. This response never indicates publishing.
agent_html Supported Agent HTML CSP keys. Unsupported keys are rejected.
Show child attributes
Show child attributes
Apakah halaman ini membantu?