Skip to content

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}
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 } }'
page
required
string
/^pag_[a-z0-9]{26}$/

Example

pag_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
slug
string
isTest
boolean
document
object
blocks
required
Array
>= 1 items <= 60 items
One of:
object
type
required
string
Allowed values: hero
title
required
string
>= 1 characters <= 200 characters /^[^\x00-\x1f\x7f]*$/
subtitle
string
>= 1 characters <= 400 characters /^[^\x00-\x1f\x7f]*$/
imageUrl
string
/^https:\/\/[^\s"'<>\\]{1,1990}$/i/
imageAlt
string
<= 300 characters
buttonLabel
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
buttonHref
string
/^(https:\/\/[^\s"'<>\\]{1,1990}|mailto:[^\s"'<>\\]{3,200}|tel:\+?[0-9 ()-]{3,30}|#[a-z0-9_-]{1,64})$/i/
settings
object
language
string
default: es-MX
Allowed values: es-MX es-ES es-AR en pt-BR fr de it ja ko zh-CN ar
primary
string
default: #1f4fd8 /^#[0-9a-fA-F]{6}$/
text
string
default: #1a1a1a /^#[0-9a-fA-F]{6}$/
background
string
default: #ffffff /^#[0-9a-fA-F]{6}$/
font
string
default: system
Allowed values: system serif mono
width
integer
default: 760 >= 560 <= 1100
seo
object
title
required
string
>= 1 characters <= 70 characters /^[^\x00-\x1f\x7f]*$/
description
string
"" <= 160 characters /^[^\x00-\x1f\x7f]*$/
imageUrl
string
/^https:\/\/[^\s"'<>\\]{1,1990}$/i/
noindex
boolean

Landing page

Media typeapplication/json
object
id
required
string
brandId
required
string
name
required
string
slug
required
string
status
required
string
Allowed values: draft published unpublished suspended
isTest
required
boolean
document
required

Draft: blocks and settings (see LandingDocument)

object
key
additional properties
nullable
seo
required

SEO (see LandingSeo)

object
key
additional properties
nullable
currentVersion
required
number
nullable
urls
required
Array<string>
suspendedReason
required
string
nullable
Allowed values: phishing malware illegal abuse
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"
}
}