Update the draft (captures.write). The published version does not change until you publish again; the address can only change while the page is unpublished; a suspended page cannot be edited
PATCH
/v1/pages/{page}
const url = 'https://api.replifier.com/v1/pages/pag_01hx0000000000000000000000';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example","isTest":true,"document":{"blocks":[{"type":"hero","title":"example","subtitle":"example","imageUrl":"example","imageAlt":"example","buttonLabel":"example","buttonHref":"example"}],"settings":{"language":"es-MX","primary":"#1f4fd8","text":"#1a1a1a","background":"#ffffff","font":"system","width":760}},"seo":{"title":"example","description":"","imageUrl":"example","noindex":false}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.replifier.com/v1/pages/pag_01hx0000000000000000000000 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "slug": "example", "isTest": true, "document": { "blocks": [ { "type": "hero", "title": "example", "subtitle": "example", "imageUrl": "example", "imageAlt": "example", "buttonLabel": "example", "buttonHref": "example" } ], "settings": { "language": "es-MX", "primary": "#1f4fd8", "text": "#1a1a1a", "background": "#ffffff", "font": "system", "width": 760 } }, "seo": { "title": "example", "description": "", "imageUrl": "example", "noindex": false } }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”page
required
string
Example
pag_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
slug
string
isTest
boolean
document
object
blocks
required
Array
One of:
object
type
required
string
title
required
string
subtitle
string
imageUrl
string
imageAlt
string
buttonLabel
string
buttonHref
string
object
type
required
string
text
required
string
level
integer
align
string
object
type
required
string
content
required
string
align
string
object
type
required
string
src
required
string
alt
required
string
width
integer
href
string
object
type
required
string
label
required
string
href
required
string
align
string
object
type
required
string
columns
required
Array<object>
object
blocks
required
Array
One of:
object
type
required
string
text
required
string
level
integer
align
string
object
type
required
string
content
required
string
align
string
object
type
required
string
src
required
string
alt
required
string
width
integer
href
string
object
type
required
string
label
required
string
href
required
string
align
string
object
type
required
string
object
type
required
string
height
integer
object
type
required
string
formId
required
string
object
type
required
string
items
required
Array<object>
object
q
required
string
a
required
string
object
type
required
string
until
required
string format: date-time
label
required
string
object
type
required
string
label
required
string
message
string
connectionId
string
align
string
object
type
required
string
text
required
string
address
string
settings
object
language
string
primary
string
text
string
background
string
font
string
width
integer
seo
object
title
required
string
description
string
imageUrl
string
noindex
boolean
Responses
Section titled “Responses”Landing page
Media typeapplication/json
object
id
required
string
brandId
required
string
name
required
string
slug
required
string
status
required
string
isTest
required
boolean
document
required
Draft: blocks and settings (see LandingDocument)
object
key
additional properties
seo
required
SEO (see LandingSeo)
object
key
additional properties
currentVersion
required
number
urls
required
Array<string>
suspendedReason
required
string
createdAt
required
string
updatedAt
required
string
Example
{ "status": "draft", "suspendedReason": "phishing"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}