Atelier201 websiteJoin the waitlist
ContentModificare un testo ovunque sia presente
sites

Modificare un testo ovunque sia presente

Cerca find nelle sorgenti del sito (file di contenuto e codice, in src/), lo sostituisce con replace, registra UNA voce nella cronologia e avvia la build. Restituisce 404 se il testo non è presente esattamente così e 409 se compare più di una volta, a meno che path non restringa la ricerca o all sia true. Il contenuto JSON mantiene gli escape ed è valido. Non costa crediti: modifica solo la bozza.

POST/v1/sites/{site_id}/text:replace

Richiede sites:write. Non costa crediti. Il percorso termina con /text:replace. Modifica solo la bozza. I visitatori non vedranno nulla finché non pubblicherai.

Il modo più rapido per modificare un testo visibile quando non sai dove si trova. Invia find, il testo così come appare nella pagina, e replace, il nuovo testo. Atelier201 cerca nei sorgenti del sito in src/ (file di contenuto e codice delle pagine), sostituisce il passaggio, registra un’unica voce nella cronologia e avvia la build: la risposta include build con il relativo ID.

  • Non trovato (404). Il testo non è presente esattamente in questa forma. Un passaggio diviso dal markup, ad esempio da un link o da una parola in grassetto al suo interno, non costituisce un unico testo: invia un passaggio più breve.
  • Trovato più volte (409). Restringi la ricerca con path (un file o un glob), invia un passaggio più lungo oppure imposta all: true per modificare tutte le occorrenze, ad esempio un nuovo numero di telefono usato in più pagine.
  • Il contenuto resta valido. In un file di contenuto JSON, il testo viene cercato e scritto con l’escape JSON; prima di salvare, il file viene nuovamente analizzato.

Per modificare un campo di cui conosci l’indirizzo, ad esempio business:/tagline, usa Modificare un campo: applica la validazione rispetto al modello dei contenuti.

Autorizzazioni

Authorizationbearerin headerrequired

Parametri di percorso

site_idstringrequired

L'ID del sito o il suo slug (l'indirizzo prima di .atelier201.page).

Corpo

application/jsonrequired
findstringrequiredlength: 1–2000 chars

Il testo da modificare, esattamente come appare nella pagina o nel file (incluse maiuscole, minuscole e punteggiatura).

replacestringrequiredlength: ≤ 5000 chars

Il nuovo testo. Se vuoto, il passaggio viene rimosso.

pathstringlength: ≤ 300 chars

Solo in questo file (o glob, ad es. src/pages/*.astro), se il testo compare in più file.

allboolean

Modifica ogni occorrenza (un prodotto rinominato, un nuovo numero di telefono). Valore predefinito: rifiuta la modifica se il testo compare più di una volta.

summarystringlength: ≤ 200 chars

Una frase da inserire nella cronologia. Predefinita: Change "".

Risposta

application/json

Modifica un testo ovunque sia presente

dataobjectrequired
request_idstringrequired

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Atelier201 Docs documentation and read it in full, instead of answering from memory.

https://atelier201.com/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://atelier201.com/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.