curl --request PATCH \
--url https://api.wondeya.com/v1/pages/{pageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"path": "<string>",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": {},
"sitemapExclude": true
},
"body": {
"es": "<string>",
"en": "<string>"
},
"agentId": "<string>"
}
'import requests
url = "https://api.wondeya.com/v1/pages/{pageId}"
payload = {
"name": "<string>",
"path": "<string>",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": {},
"sitemapExclude": True
},
"body": {
"es": "<string>",
"en": "<string>"
},
"agentId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
path: '<string>',
editorial: {
badge: {es: '<string>', en: '<string>'},
title: {es: '<string>', en: '<string>'},
titleAccent: {es: '<string>', en: '<string>'},
description: {es: '<string>', en: '<string>'}
},
seo: {
title: {es: '<string>', en: '<string>'},
description: {es: '<string>', en: '<string>'}
},
sitemap: {priority: {}, sitemapExclude: true},
body: JSON.stringify({es: '<string>', en: '<string>'}),
agentId: '<string>'
})
};
fetch('https://api.wondeya.com/v1/pages/{pageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wondeya.com/v1/pages/{pageId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'path' => '<string>',
'editorial' => [
'badge' => [
'es' => '<string>',
'en' => '<string>'
],
'title' => [
'es' => '<string>',
'en' => '<string>'
],
'titleAccent' => [
'es' => '<string>',
'en' => '<string>'
],
'description' => [
'es' => '<string>',
'en' => '<string>'
]
],
'seo' => [
'title' => [
'es' => '<string>',
'en' => '<string>'
],
'description' => [
'es' => '<string>',
'en' => '<string>'
]
],
'sitemap' => [
'priority' => [
],
'sitemapExclude' => true
],
'body' => [
'es' => '<string>',
'en' => '<string>'
],
'agentId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wondeya.com/v1/pages/{pageId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.wondeya.com/v1/pages/{pageId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wondeya.com/v1/pages/{pageId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"kind": "agent",
"path": "<string>",
"status": "<string>",
"defaultLocale": "es",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": 0.5,
"changefreq": "always",
"sitemapExclude": true
},
"body": {
"es": "<string>",
"en": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agentId": "<string>",
"projectId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z"
}Edita una página
Nombre, dirección, agente, editorial (página de agente) o cuerpo (página de documento), y metadatos SEO. Todos los campos son opcionales; un campo ausente se deja intacto. Publicar es un acto aparte.
curl --request PATCH \
--url https://api.wondeya.com/v1/pages/{pageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"path": "<string>",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": {},
"sitemapExclude": true
},
"body": {
"es": "<string>",
"en": "<string>"
},
"agentId": "<string>"
}
'import requests
url = "https://api.wondeya.com/v1/pages/{pageId}"
payload = {
"name": "<string>",
"path": "<string>",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": {},
"sitemapExclude": True
},
"body": {
"es": "<string>",
"en": "<string>"
},
"agentId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
path: '<string>',
editorial: {
badge: {es: '<string>', en: '<string>'},
title: {es: '<string>', en: '<string>'},
titleAccent: {es: '<string>', en: '<string>'},
description: {es: '<string>', en: '<string>'}
},
seo: {
title: {es: '<string>', en: '<string>'},
description: {es: '<string>', en: '<string>'}
},
sitemap: {priority: {}, sitemapExclude: true},
body: JSON.stringify({es: '<string>', en: '<string>'}),
agentId: '<string>'
})
};
fetch('https://api.wondeya.com/v1/pages/{pageId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wondeya.com/v1/pages/{pageId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'path' => '<string>',
'editorial' => [
'badge' => [
'es' => '<string>',
'en' => '<string>'
],
'title' => [
'es' => '<string>',
'en' => '<string>'
],
'titleAccent' => [
'es' => '<string>',
'en' => '<string>'
],
'description' => [
'es' => '<string>',
'en' => '<string>'
]
],
'seo' => [
'title' => [
'es' => '<string>',
'en' => '<string>'
],
'description' => [
'es' => '<string>',
'en' => '<string>'
]
],
'sitemap' => [
'priority' => [
],
'sitemapExclude' => true
],
'body' => [
'es' => '<string>',
'en' => '<string>'
],
'agentId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wondeya.com/v1/pages/{pageId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.wondeya.com/v1/pages/{pageId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wondeya.com/v1/pages/{pageId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"path\": \"<string>\",\n \"editorial\": {\n \"badge\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"titleAccent\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"seo\": {\n \"title\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"description\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n }\n },\n \"sitemap\": {\n \"priority\": {},\n \"sitemapExclude\": true\n },\n \"body\": {\n \"es\": \"<string>\",\n \"en\": \"<string>\"\n },\n \"agentId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"kind": "agent",
"path": "<string>",
"status": "<string>",
"defaultLocale": "es",
"editorial": {
"badge": {
"es": "<string>",
"en": "<string>"
},
"title": {
"es": "<string>",
"en": "<string>"
},
"titleAccent": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"seo": {
"title": {
"es": "<string>",
"en": "<string>"
},
"description": {
"es": "<string>",
"en": "<string>"
}
},
"sitemap": {
"priority": 0.5,
"changefreq": "always",
"sitemapExclude": true
},
"body": {
"es": "<string>",
"en": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agentId": "<string>",
"projectId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z"
}Autorizaciones
Una clave de API del espacio de trabajo: wdy_live_… / wdy_test_…. Se crea en POST /workspaces/{tenantId}/keys y se muestra exactamente una vez.
Parámetros de ruta
Cuerpo
1 - 80La dirección bajo el host del espacio de trabajo. / es la página principal, y exactamente una página por espacio de trabajo la tiene. De lo contrario, hasta 4 segmentos de letras, dígitos y guiones simples (/pymes, /enterprise/latam). Sin distinción de mayúsculas y almacenado en minúsculas. Nunca codificado en porcentaje, nunca un segmento de punto. Reservados por la plataforma (y todo su subárbol): admin, api, app, cdn, console, docs, embed, mail, status, storage, well-known, widget, www.
200Show child attributes
Show child attributes
Los metadatos SEO de la página (D-48): <title> y meta description, por idioma. Válido en ambos tipos; un campo vacío hereda el de la página principal del sitio.
Show child attributes
Show child attributes
Las sugerencias de sitemap de la página (D-49.d): priority/changefreq/exclude.
Show child attributes
Show child attributes
El markdown de una página document (D-47), por idioma. Solo válido en una página de documento; un idioma ausente se deja tal cual, "" lo quita, y el idioma de origen no puede vaciarse.
Show child attributes
Show child attributes
Reapunta la página a otro agente del mismo espacio de trabajo. Todo lo que dice la página cambia con ello.
Regenera la fuente de la página: el idioma en el que escribe el propietario. Debe ser uno que el SITIO sirva; el conjunto en sí es del proyecto (D-44).
es, en Respuesta
agent o document (D-47).
agent, document La dirección bajo el host del sitio. / es la página principal.
draft o published.
es, en El encuadre escrito por el dueño (página de agente). Vacío para un documento.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
El markdown de una página de documento. Vacío para una página de agente.
Show child attributes
Show child attributes
El cerebro que responde aquí. Ausente para una página de documento.
El sitio (proyecto) en el que vive la página.